401794afac467fbe52037b2472dfde8a68b3fd50,donkey/actuators.py,Maestro_Controller,set_turn_left,#Maestro_Controller#Any#,90

Before Change


                                                            ((w >> 7) & 0x7F)]))

    def set_turn_left(self, v):
        Maestro_Controller.astar_device.write(bytearray("L" if v else "l", "ascii"))

    def set_turn_right(self, v):
        Maestro_Controller.astar_device.write(bytearray("R" if v else "r", "ascii"))

After Change


                                                            ((w >> 7) & 0x7F)]))

    def set_turn_left(self, v):
        if self.lturn != v:
            self.lturn = v
            b = bytearray("L" if v else "l", "ascii")
            with Maestro_Controller.astar_lock:
                Maestro_Controller.astar_device.write(b)

    def set_turn_right(self, v):
        if self.rturn != v:
            self.rturn = v
            b = bytearray("R" if v else "r", "ascii")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 12

Instances


Project Name: autorope/donkeycar
Commit Name: 401794afac467fbe52037b2472dfde8a68b3fd50
Time: 2017-07-01
Author: marco@sonic.net
File Name: donkey/actuators.py
Class Name: Maestro_Controller
Method Name: set_turn_left


Project Name: autorope/donkeycar
Commit Name: 401794afac467fbe52037b2472dfde8a68b3fd50
Time: 2017-07-01
Author: marco@sonic.net
File Name: donkey/actuators.py
Class Name: Maestro_Controller
Method Name: set_brake


Project Name: autorope/donkeycar
Commit Name: 401794afac467fbe52037b2472dfde8a68b3fd50
Time: 2017-07-01
Author: marco@sonic.net
File Name: donkey/actuators.py
Class Name: Maestro_Controller
Method Name: set_headlight


Project Name: autorope/donkeycar
Commit Name: 401794afac467fbe52037b2472dfde8a68b3fd50
Time: 2017-07-01
Author: marco@sonic.net
File Name: donkey/actuators.py
Class Name: Maestro_Controller
Method Name: set_turn_right