Changes between Version 7 and Version 8 of Tutorial5AdvancedRemoteControlUsage
- Timestamp:
- Nov 22, 2017, 12:52:42 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial5AdvancedRemoteControlUsage
v7 v8 1 1 = Tutorial 5: Advanced remote control usage = 2 2 3 As we've seen in [ [Tutorial1FirstRobot|tutorial 1]], we created a {{{Gamepad}}} class in order to control our robot. This class inherits from {{{RemoteControl}}}, and implements a few virtual methods. As an example, we will use my setup for my big 4 DoF hexapod, '''Cronos''':3 As we've seen in [wiki:Tutorial1FirstRobot tutorial 1], we created a {{{Gamepad}}} class in order to control our robot. This class inherits from {{{RemoteControl}}}, and implements a few virtual methods. As an example, we will use my setup for my big 4 DoF hexapod, '''Cronos''': 4 4 5 5 {{{ … … 50 50 }}} 51 51 52 The first method, {{{_createFrontend()}}} must return a valid frontend (we just saw in [ [Tutorial4AddInputFrontendSupport|previous tutorial]] how to create such frontends). This methods takes as first argument the frontend path in '''{{{/dev}}}'''. An additional argument can be given to override the {{{DEFAULT_AXIS_CALIBRATION}}} table.52 The first method, {{{_createFrontend()}}} must return a valid frontend (we just saw in [wiki:Tutorial4AddInputFrontendSupport previous tutorial] how to create such frontends). This methods takes as first argument the frontend path in '''{{{/dev}}}'''. An additional argument can be given to override the {{{DEFAULT_AXIS_CALIBRATION}}} table. 53 53 54 54 In the second method, {{{_buildComponents()}}}, interesting things take place: this is where {{{Component}}}s ({{{Button}}}, {{{Analog}}}...) of our remote control are created.
