NTURT Zephyr v0.0.1
NTURT common library for Zephyr RTOS
Loading...
Searching...
No Matches
convert.h File Reference

VCU CAN bus data conversion macros. More...

#include <stdint.h>
#include <nturt/canbus/convert.h>
#include "vcu/ctrl/params.h"
+ Include dependency graph for convert.h:

Macros

#define INV_TORQUE_PHY_TO_CAN_FL(phy)
 Front left inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).
 
#define INV_TORQUE_PHY_TO_CAN_FR(phy)
 Front right inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).
 
#define INV_TORQUE_PHY_TO_CAN_RL(phy)
 Rear left inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).
 
#define INV_TORQUE_PHY_TO_CAN_RR(phy)
 Rear right inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).
 
#define INV_SPEED_CAN_TO_WHEEL_PHY_FL(can)
 Front left inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.
 
#define INV_SPEED_CAN_TO_WHEEL_PHY_FR(can)
 Front right inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.
 
#define INV_SPEED_CAN_TO_WHEEL_PHY_RL(can)
 Rear left inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.
 
#define INV_SPEED_CAN_TO_WHEEL_PHY_RR(can)
 Rear right inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.
 
#define INV_TORQUE_CAN_TO_WHEEL_PHY_FL(can)
 Front left inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).
 
#define INV_TORQUE_CAN_TO_WHEEL_PHY_FR(can)
 Front right inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).
 
#define INV_TORQUE_CAN_TO_WHEEL_PHY_RL(can)
 Rear left inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).
 
#define INV_TORQUE_CAN_TO_WHEEL_PHY_RR(can)
 Rear right inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).
 

Detailed Description

VCU CAN bus data conversion macros.

Author
quantumspawner
Version
0.0.1
Date
2025-08-24