blob: 81efbb1a005ee3e9c5605e63c5f014c635ffd588 [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
25 duty_cycle: float (id: 6);
26}