Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 1 | #ifndef BOT3_SHIFTER_HALL_EFFECT_H_ |
| 2 | #define BOT3_SHIFTER_HALL_EFFECT_H_ |
| 3 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame^] | 4 | namespace bot3::constants { |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 5 | |
| 6 | // Contains the voltages for an analog hall effect sensor on a shifter. |
| 7 | struct ShifterHallEffect { |
| 8 | // The numbers to use for scaling raw voltages to 0-1. |
| 9 | double high, low; |
| 10 | |
| 11 | // The numbers for when the dog is clear of each gear. |
| 12 | double clear_high, clear_low; |
| 13 | }; |
| 14 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame^] | 15 | } // namespace bot3::constants |
Comran Morshed | e9b1292 | 2015-11-04 19:46:48 +0000 | [diff] [blame] | 16 | |
| 17 | #endif |