Esempio n. 1
0
 def M_WAIT_main(ctrlr):
     sensor = ctrlr.sensors['ROT']
     if sensor.positive:
         state.set_property(ctrlr, 'angle', int(sensor.bodies[0], 10))
         state.set_sequence(ctrlr,
                            'ROTATING',
                            'M_WAIT',
                            )
         state.next_state(ctrlr)
Esempio n. 2
0
 def M_WAIT_main(ctrlr):
     if digital_read(ctrlr, 'START'):
         state.set_property(ctrlr, 'num_sk', 0)
         state.goto_master(ctrlr, 'M_START')