Skip to content

Commit 0f223d3

Browse files
committed
[tools/switch] change switch to Signal type from SignalTimeDependant
1 parent a0067f6 commit 0f223d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/sot/core/switch.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace dynamicgraph {
4545

4646
public: /* --- SIGNAL --- */
4747
DYNAMIC_GRAPH_ENTITY_DECL();
48-
dynamicgraph::SignalTimeDependent<bool,int> outSOUT;
48+
dynamicgraph::Signal<bool,int> outSOUT;
4949

5050
protected:
5151
bool signalOutput;
@@ -58,9 +58,9 @@ namespace dynamicgraph {
5858
public:
5959
Switch( const std::string& name )
6060
: Entity(name)
61-
,outSOUT( boost::bind(&Switch::switchOutput,this,_1,_2),
62-
sotNOSIGNAL,"Switch("+name+")::output(bool)::out")
61+
,outSOUT("Switch("+name+")::output(bool)::out")
6362
{
63+
outSOUT.setFunction(boost::bind(&Switch::switchOutput,this,_1,_2));
6464
signalOutput = false;
6565
signalRegistration (outSOUT );
6666
addCommand ("turnOn",

0 commit comments

Comments
 (0)