liftof_lib/constants.rs
1
2///! Command constants
3/// TODO These need to be moved to JSON repr and read from there.
4/// Calibration constants
5
6/// TODO This was set randomly
7pub const DEFAULT_CALIB_VOLTAGE: u16 = 4269;
8/// TODO Not actually sure what we expect here
9pub const DEFAULT_CALIB_EXTRA: u8 = 0xFF;
10/// Represents "all boards" for RB
11pub const DEFAULT_RB_ID: u8 = 0xFF;
12/// Represents "all boards" for PB
13pub const DEFAULT_PB_ID: u8 = 0xFF;
14/// Represents "all boards" for PB
15pub const DEFAULT_LTB_ID: u8 = 0xFF;
16/// Default LTB CH 0 threshold
17pub const DEFAULT_LTB_THRESHOLD_HIT: u16 = 50;
18/// Default LTB CH 1 threshold
19pub const DEFAULT_LTB_THRESHOLD_BETA: u16 = 50;
20/// Default LTB CH 2 threshold
21pub const DEFAULT_LTB_THRESHOLD_VETO: u16 = 150;
22/// Which kind of run is to be launched by default
23pub const DEFAULT_RUN_TYPE: u8 = 0xFF;
24/// Number of events to be generated by default
25pub const DEFAULT_RUN_EVENT_NO: u8 = 0xFF;
26/// Time the run is expected to go on for by default
27pub const DEFAULT_RUN_TIME: u8 = 0xFF;
28
29/// Min preamp voltage
30pub const PREAMP_MIN_BIAS: i64 = 0;
31/// Max preamp voltage
32pub const PREAMP_MAX_BIAS: i64 = 68;