blob: 631fd593ac6ee3332037f59cb9b997ac9d4013b9 [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};