File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -211,8 +211,9 @@ Device( const std::string& n )
211
211
));
212
212
213
213
addCommand (" getTimeStep" ,
214
- makeDirectGetter (*this , &this ->timestep_ ,
215
- docDirectGetter (" Time step" , " double" )));
214
+ command::makeDirectGetter (*this , &this ->timestep_ ,
215
+ command::docDirectGetter (" Time step" , " double" )));
216
+
216
217
// Handle commands and signals called in a synchronous way.
217
218
periodicCallBefore_.addSpecificCommands (*this , commandMap, " before." );
218
219
periodicCallAfter_.addSpecificCommands (*this , commandMap, " after." );
Original file line number Diff line number Diff line change @@ -41,6 +41,18 @@ namespace dynamicgraph {
41
41
command::makeCommandVoid1 ((Device&)*this ,
42
42
&Device::increment, docstring));
43
43
44
+ /* Set Time step. */
45
+ docstring =
46
+ " \n "
47
+ " Set the time step provided\n "
48
+ " \n "
49
+ " take one floating point number as input\n "
50
+ " \n " ;
51
+ addCommand (" setTimeStep" ,
52
+ makeDirectSetter (*this , &this ->timestep_ ,
53
+ docstring));
54
+
55
+
44
56
}
45
57
} // namespace sot
46
58
} // namespace dynamicgraph
You can’t perform that action at this time.
0 commit comments