A list of standard telemetry values. This packet is sent in response to a Get Values command.
Byte | Type | Scalar | Mnemonic | Units | Description |
---|---|---|---|---|---|
0 | int16 | 10 | mc_interface_temp_fet_filtered | ||
2 | int16 | 10 | mc_interface_temp_motor_filtered | ||
4 | int32 | 100 | TLM_MOTOR_I_AVG | A | Average motor current. Resets on read. |
8 | int32 | 100 | TLM_INPUT_I_AVG | A | Average input current. Resets on read. |
12 | int32 | 100 | TLM_DIR_AXIS_I_AVG | A | (FOC Mode only) Average direct axis motor current. Resets on read. |
16 | int32 | 100 | TLM_Q_AXIS_I_AVG | A | (FOC Mode only) Average quadrature axis motor current. Resets on read. |
20 | int16 | 1000 | TLM_DUTY_CYCLE | ||
22 | int32 | 1 | TLM_RPM | rpm | Current speed of the motor. Sign determines spin direction. RPM will be this number divided by (MOTOR_POLE_NUMBER / 2) |
26 | int16 | 10 | TLM_INPUT_V_FILTERED | ||
28 | int32 | 10000 | TLM_AMP_HOURS | A-h | Amount of amp-hours drawn from the input source |
32 | int32 | 10000 | TLM_AMP_HOURS_CHARGED | A-h | Amount of amp-hours fed back into the input source |
36 | int32 | 10000 | TLM_WATT_HOURS | W-h | Amount of watt-hours drawn from the input source |
40 | int32 | 10000 | TLM_WATT_HOURS_CHARGED | W-h | Amount of watt-hours fed back into the input source |
44 | int32 | TLM_TACH_STEPS | Steps | Number of steps motor has rotated. Sign determines spin direction. Number of motor revolutions will be this number divided by (3 * MOTOR_POLE_NUMBER). | |
48 | int32 | TLM_TACH_STEPS_ABS | Steps | Absolute number of steps motor has rotated. Number of motor revolutions will be this number divided by (3 * MOTOR_POLE_NUMBER). | |
52 | uint8 | mc_interface_get_fault | |||
53 | int32 | 1000000 | mc_interface_get_pid_pos_now | ||
57 | uint8 | current_controller_id | |||
58 | int16 | 10 | NTC_TEMP_MOS1 | ||
60 | int16 | 10 | NTC_TEMP_MOS2 | ||
62 | int16 | 10 | NTC_TEMP_MOS3 | ||
64 | int32 | 1000 | TLM_DIR_AXIS_V_AVG | V | (FOC Mode only) Average direct axis motor voltage. Resets on read. |
68 | int32 | 1000 | TLM_Q_AXIS_V_AVG | V | (FOC Mode only) Average quadrature axis motor voltage. Resets on read. |
72 | uint8 | status |
[reveal1 title=”Web App”]
[/reveal1]
[reveal1 title=”UART Interface”]
This command follows the standard VESC packet format.
Command Structure
Byte | Datatype | Value | Description |
---|---|---|---|
0 | uint8 | 0x02 | Packet start byte |
1 | uint8 | 0x01 | Packet length |
2 | uint8 | 0x04 | Packet ID [COMM_GET_VALUES] |
3 | uint16 | value here | CRC16 of data section |
5 | uint8 | 0x03 | Stop byte |
Command Example
Start Byte | Length | PID | CRC16 | End Byte |
---|---|---|---|---|
0x02 | 0x01 | 0x04 | 0xF729 | 0x03 |
Command Response
The controller responds with the Standard Telemetry packet.
[/reveal1]
[reveal1 title=”CAN Interface”]
[/reveal1]