blob: ffadb944ee853a89631162259b7da8fd99a76f25 [file] [log] [blame]
Brian Silvermane0a95462014-02-17 00:41:09 -08001package frc971;
2
Brian Silverman5b433df2014-02-17 11:57:37 -08003// Records edges captured on a single hall effect sensor.
Brian Silvermane0a95462014-02-17 00:41:09 -08004struct HallEffectStruct {
5 bool current;
6 int32_t posedge_count;
7 int32_t negedge_count;
8};
Brian Silverman5b433df2014-02-17 11:57:37 -08009
10// Records the positions for a mechanism with edge-capturing sensors on it.
11struct HallEffectPositions {
12 double current;
13 double posedge;
14 double negedge;
15};
Austin Schuh60c56662014-02-17 14:37:19 -080016
17// Records edges captured on a single hall effect sensor.
18struct PosedgeOnlyCountedHallEffectStruct {
19 bool current;
20 int32_t posedge_count;
21 int32_t negedge_count;
22 double posedge_value;
23};