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 | |||||
4 | namespace bot3 { | ||||
5 | namespace constants { | ||||
6 | |||||
7 | // Contains the voltages for an analog hall effect sensor on a shifter. | ||||
8 | struct ShifterHallEffect { | ||||
9 | // The numbers to use for scaling raw voltages to 0-1. | ||||
10 | double high, low; | ||||
11 | |||||
12 | // The numbers for when the dog is clear of each gear. | ||||
13 | double clear_high, clear_low; | ||||
14 | }; | ||||
15 | |||||
16 | |||||
17 | } // constants | ||||
18 | } // bot3 | ||||
19 | |||||
20 | #endif |