hytech-racing / MCU

https://hytech-racing.github.io/MCU/index.html
GNU General Public License v3.0
1 stars 0 forks source link

Make sure pedal 'sense' max/min margins are reasonable #62

Closed RCMast3r closed 7 months ago

RCMast3r commented 7 months ago

right now the margins can scale the possible value below or above the range of the sensor. we need to also cap the scaled min / max of the sensor to being within 0 to max of sensor.

walkermburns commented 7 months ago

These should be an arbitrary amount higher and lower than min and max in case the pedal is completely disconnected, we need to trip implausibility if the values are floating around their max/min values

shaynoorani commented 7 months ago

Done