
first commit
Diff: state_control.h
- Revision:
- 27:0fa9d61c5fc6
- Parent:
- 26:54ce9f642477
- Child:
- 31:d570f957e083
--- a/state_control.h Mon Nov 08 21:08:41 2021 +0000 +++ b/state_control.h Mon Nov 15 21:18:37 2021 +0000 @@ -81,7 +81,7 @@ batteryVoltage = battInput * 3.3 * battDividerScalar; avgCellVoltage = batteryVoltage / 3.0; - if (left_distance_sensor.read()*1.2 < (0.300/3.3) && right_distance_sensor.read()*1.2 < (0.300/3.3)) + if (left_distance_sensor.read()*1.5 < (0.300/3.3) && right_distance_sensor.read()*1.5 < (0.300/3.3)) { _fault = true; fault_type = OFF_TRACK;