Daniel Petti | aece37f | 2014-10-25 17:13:44 -0700 | [diff] [blame^] | 1 | #ifndef FRC971_SHIFTER_HALL_EFFECT_H_ |
| 2 | #define FRC971_SHIFTER_HALL_EFFECT_H_ |
| 3 | |
| 4 | namespace frc971 { |
| 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 | // Low is near 0.0, high is near 1.0 |
| 11 | double low_gear_middle, low_gear_low; |
| 12 | double high_gear_high, high_gear_middle; |
| 13 | |
| 14 | // The numbers for when the dog is clear of each gear. |
| 15 | double clear_low, clear_high; |
| 16 | }; |
| 17 | |
| 18 | } // constants |
| 19 | } // frc971 |
| 20 | |
| 21 | #endif |