blob: 890c63cf441a7e6477cb6a087613aaeaaf899490 [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
brians343bc112013-02-10 01:53:46 +000019} // namespace constants
20} // namespace frc971
Brian Silverman431500a2013-10-28 19:50:15 -070021
22#endif // FRC971_CONSTANTS_H_