Skip to content

Commit

Permalink
feat<pil> send bol for gpio type from pil to servos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahelsamahy committed Oct 9, 2024
1 parent 49d80c4 commit 1c349a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pilot/pilot/relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def quit(self):

class NoopMonitoringRelay(AbstractRelay):
"""Fake class made for testing"""

def setup(self):
return []

Expand Down Expand Up @@ -147,7 +148,8 @@ def _reboot(self):
_steering_offset = parse_option("ras.driver.steering.offset", float, 0.0, errors, **_config)
_motor_scale = parse_option("ras.driver.motor.scale", float, 1.0, errors, **_config)
_motor_alternate = parse_option("ras.driver.motor.alternate", bool, False, errors, **_config)
self._servo_config = dict(app_version=2, steering_offset=_steering_offset, motor_scale=_motor_scale, motor_alternate=_motor_alternate)
_is_gpio_relay = parse_option("driver.gpio_relay", bool, False, errors, **_config)
self._servo_config = dict(app_version=2, steering_offset=_steering_offset, motor_scale=_motor_scale, is_gpio_relay=_is_gpio_relay, motor_alternate=_motor_alternate)
self._integrity.reset()
self._send_config(self._servo_config)
return errors
Expand Down

0 comments on commit 1c349a3

Please sign in to comment.