Changes between Version 6 and Version 7 of Tutorial1FirstRobot


Ignore:
Timestamp:
Nov 29, 2017, 7:29:31 PM (8 years ago)
Author:
fma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial1FirstRobot

    v6 v7  
    8282        self._addConfig("body")
    8383
    84         self._addComponent(Button, command=self.selectNextConfig, key="button_008", trigger="hold")
    85         self._addComponent(Button, command=self.selectPreviousConfig, key="button_009", trigger="hold")
    86 
    87         self._addComponent(Button, command=self.robot.incBodyPosition, key="button_004", mapper=MapperSetValue(dz=+5))
    88         self._addComponent(Button, command=self.robot.incBodyPosition, key="button_005", mapper=MapperSetValue(dz=-5))
     84        self._addComponent(Button, command=self.selectNextConfig, key="digital_008", trigger="hold")
     85        self._addComponent(Button, command=self.selectPreviousConfig, key="digital_009", trigger="hold")
     86
     87        self._addComponent(Button, command=self.robot.incBodyPosition, key="digital_004", mapper=MapperSetValue(dz=+5))
     88        self._addComponent(Button, command=self.robot.incBodyPosition, key="digital_005", mapper=MapperSetValue(dz=-5))
    8989        self._addComponent(Joystick, configs="walk", command=GaitSequencer().walk, keys=("analog_02", "analog_03", "analog_00"), mapper=MapperWalk())
    9090