Brian Silverman | e0a9546 | 2014-02-17 00:41:09 -0800 | [diff] [blame] | 1 | package frc971; |
| 2 | |
Brian Silverman | 5b433df | 2014-02-17 11:57:37 -0800 | [diff] [blame^] | 3 | // Records edges captured on a single hall effect sensor. |
Brian Silverman | e0a9546 | 2014-02-17 00:41:09 -0800 | [diff] [blame] | 4 | struct HallEffectStruct { |
| 5 | bool current; |
| 6 | int32_t posedge_count; |
| 7 | int32_t negedge_count; |
| 8 | }; |
Brian Silverman | 5b433df | 2014-02-17 11:57:37 -0800 | [diff] [blame^] | 9 | |
| 10 | // Records the positions for a mechanism with edge-capturing sensors on it. |
| 11 | struct HallEffectPositions { |
| 12 | double current; |
| 13 | double posedge; |
| 14 | double negedge; |
| 15 | }; |