NTURT Zephyr v0.0.1
NTURT common library for Zephyr RTOS
Loading...
Searching...
No Matches
VCU CAN bus data conversion.

VCU CAN bus data conversion macros. More...

+ Collaboration diagram for VCU CAN bus data conversion.:

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.

Macro Definition Documentation

◆ INV_SPEED_CAN_TO_WHEEL_PHY_FL

#define INV_SPEED_CAN_TO_WHEEL_PHY_FL ( can)

#include <vcu/canbus/convert.h>

Value:
#define ANGULAR_VELOCITY_CAN_TO_PHY(can)
Angular velocity CAN data in RPM (uint16_t), convert to RPM (double).
Definition convert.h:68
#define PARAM_MOTOR_DIR_FL
Definition params.h:30
#define PARAM_MOTOR_REDUCTION_RATIO
Definition params.h:35

Front left inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.

◆ INV_SPEED_CAN_TO_WHEEL_PHY_FR

#define INV_SPEED_CAN_TO_WHEEL_PHY_FR ( can)

#include <vcu/canbus/convert.h>

Value:
#define PARAM_MOTOR_DIR_FR
Definition params.h:31

Front right inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.

◆ INV_SPEED_CAN_TO_WHEEL_PHY_RL

#define INV_SPEED_CAN_TO_WHEEL_PHY_RL ( can)

#include <vcu/canbus/convert.h>

Value:
#define PARAM_MOTOR_DIR_RL
Definition params.h:32

Rear left inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.

◆ INV_SPEED_CAN_TO_WHEEL_PHY_RR

#define INV_SPEED_CAN_TO_WHEEL_PHY_RR ( can)

#include <vcu/canbus/convert.h>

Value:
#define PARAM_MOTOR_DIR_RR
Definition params.h:33

Rear right inverter speed CAN data in RPM (int16_t), convert to wheel speed in RPM (double) after reduction.

◆ INV_TORQUE_CAN_TO_WHEEL_PHY_FL

#define INV_TORQUE_CAN_TO_WHEEL_PHY_FL ( can)

#include <vcu/canbus/convert.h>

Value:
#define INV_TORQUE_CAN_TO_PHY(can)
Inverter torque CAN data in 0.001 rated torque (int16_t), convert to 0~1 rated torque (double).
Definition convert.h:88
#define PARAM_MOTOR_RATED_TORQUE
Definition params.h:34

Front left inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).

◆ INV_TORQUE_CAN_TO_WHEEL_PHY_FR

#define INV_TORQUE_CAN_TO_WHEEL_PHY_FR ( can)

#include <vcu/canbus/convert.h>

Value:

Front right inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).

◆ INV_TORQUE_CAN_TO_WHEEL_PHY_RL

#define INV_TORQUE_CAN_TO_WHEEL_PHY_RL ( can)

#include <vcu/canbus/convert.h>

Value:

Rear left inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).

◆ INV_TORQUE_CAN_TO_WHEEL_PHY_RR

#define INV_TORQUE_CAN_TO_WHEEL_PHY_RR ( can)

#include <vcu/canbus/convert.h>

Value:

Rear right inverter torque CAN data in 0.001 rated torque (int16_t), convert to wheel torque in Nm (double).

◆ INV_TORQUE_PHY_TO_CAN_FL

#define INV_TORQUE_PHY_TO_CAN_FL ( phy)

#include <vcu/canbus/convert.h>

Value:
#define INV_TORQ_PHY_TO_CAN(phy)
Inverter torque physical data in 0~1 rated torque (double), convert to 0.001 rated torque (int16_t).
Definition convert.h:54

Front left inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).

◆ INV_TORQUE_PHY_TO_CAN_FR

#define INV_TORQUE_PHY_TO_CAN_FR ( phy)

#include <vcu/canbus/convert.h>

Value:

Front right inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).

◆ INV_TORQUE_PHY_TO_CAN_RL

#define INV_TORQUE_PHY_TO_CAN_RL ( phy)

#include <vcu/canbus/convert.h>

Value:

Rear left inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).

◆ INV_TORQUE_PHY_TO_CAN_RR

#define INV_TORQUE_PHY_TO_CAN_RR ( phy)

#include <vcu/canbus/convert.h>

Value:

Rear right inverter torque physical data in Nm (double), convert to 0.001 rated torque (int16_t).