blob: ad3ce713f9e613999e511b766bdb5e9348103a66 [file] [log] [blame]
Brian Silverman431500a2013-10-28 19:50:15 -07001#ifndef FRC971_CONSTANTS_H_
2#define FRC971_CONSTANTS_H_
Brian Silverman2c590c32013-11-04 18:08:54 -08003
brians343bc112013-02-10 01:53:46 +00004namespace frc971 {
5namespace constants {
6
Brian Silvermanb691f5e2015-08-02 11:37:55 -07007struct ZeroingConstants {
8 // The number of samples in the moving average filter.
9 int average_filter_size;
10 // The difference in scaled units between two index pulses.
11 double index_difference;
12 // The absolute position in scaled units of one of the index pulses.
13 double measured_index_position;
14 // Value between 0 and 1 which determines a fraction of the index_diff
15 // you want to use.
16 double allowable_encoder_error;
Brian Silverman431500a2013-10-28 19:50:15 -070017};
18
Brian Silvermanebca77a2016-02-14 22:14:00 -050019// Defines a range of motion for a subsystem.
20// These are all absolute positions in scaled units.
21struct Range {
22 double lower_hard;
23 double upper_hard;
24 double lower;
25 double upper;
26};
27
brians343bc112013-02-10 01:53:46 +000028} // namespace constants
29} // namespace frc971
Brian Silverman431500a2013-10-28 19:50:15 -070030
31#endif // FRC971_CONSTANTS_H_