Changes between Version 6 and Version 7 of Tutorial2UsingThe3DSimulator


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial2UsingThe3DSimulator

    v6 v7  
    106106        self._addConfig("body")
    107107
    108         self._addComponent(Button, command=self.selectNextConfig, key="button_008", trigger="hold")
    109         self._addComponent(Button, command=self.selectPreviousConfig, key="button_009", trigger="hold")
    110 
    111         self._addComponent(Button, command=self.robot.incBodyPosition, key="button_004", mapper=MapperSetValue(dz=+5))
    112         self._addComponent(Button, command=self.robot.incBodyPosition, key="button_005", mapper=MapperSetValue(dz=-5))
     108        self._addComponent(Button, command=self.selectNextConfig, key="digital_008", trigger="hold")
     109        self._addComponent(Button, command=self.selectPreviousConfig, key="digital_009", trigger="hold")
     110
     111        self._addComponent(Button, command=self.robot.incBodyPosition, key="digital_004", mapper=MapperSetValue(dz=+5))
     112        self._addComponent(Button, command=self.robot.incBodyPosition, key="digital_005", mapper=MapperSetValue(dz=-5))
    113113        self._addComponent(Joystick, configs="walk", command=GaitSequencer().walk, keys=("analog_02", "analog_03", "analog_00"), mapper=MapperWalk())
    114114