blob: eea637996ad8d5813057f0b46379fce71d4aba89 [file] [log] [blame]
Maxwell Hendersonca1d18f2023-07-26 21:06:14 -07001namespace frc971.control_loops;
2
Maxwell Henderson10ed5c32024-01-09 12:40:54 -08003table CANTalonFX {
4 // The CAN id of the talonfx motor
Maxwell Hendersonca1d18f2023-07-26 21:06:14 -07005 id:int (id: 0);
6
7 // In Amps
8 supply_current:float (id: 1);
9
10 // In Amps
11 // Stator current where positive current means torque is applied in
12 // the motor's forward direction as determined by its Inverted setting.
13 torque_current:float (id: 2);
14
15 // In Volts
16 supply_voltage:float (id: 3);
17
18 // In degrees Celsius
19 device_temp:float (id: 4);
20
21 // In meters traveled on the drivetrain
22 position:float (id: 5);
23
24 // Nominal range is -1 to 1, but can be -2 to +2
Maxwell Henderson4d17e4a2024-03-15 15:12:54 -070025 duty_cycle:float (id: 6);
26
27 // The timestamp of the measurement on the canivore clock in nanoseconds
28 // This will have less jitter than the
29 // timestamp of the message being sent out.
30 timestamp:int64 (id: 7);
Maxwell Hendersonca1d18f2023-07-26 21:06:14 -070031}