def set_throttle(self, throttle_val, forward):
    if forward:
        is_manual_gear = False
        manual_gear = 0
        throttle = abs(throttle_val)
    else:
        is_manual_gear = False
        manual_gear = (- 1)
        throttle = (- abs(throttle_val))
def set_throttle(self, throttle_val, forward):
    if forward:
        is_manual_gear = False
        manual_gear = 0
        throttle = abs(throttle_val)
    else:
        is_manual_gear = False
        manual_gear = (- 1)
        throttle = (- abs(throttle_val))