Maxwell Henderson | ca1d18f | 2023-07-26 21:06:14 -0700 | [diff] [blame] | 1 | namespace frc971.control_loops; |
| 2 | |
Maxwell Henderson | 10ed5c3 | 2024-01-09 12:40:54 -0800 | [diff] [blame^] | 3 | table CANTalonFX { |
| 4 | // The CAN id of the talonfx motor |
Maxwell Henderson | ca1d18f | 2023-07-26 21:06:14 -0700 | [diff] [blame] | 5 | 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 | } |