Define DJI_MOTOR_TO_NORMALIZED_ID

Define Documentation

DJI_MOTOR_TO_NORMALIZED_ID(id)

Converts the dji MotorId to a uint32_t.

Parameters:
  • id[in] Some CAN MotorId

Returns:

id normalized to be around [0, DJI_MOTORS_PER_CAN), or some value >= DJI_MOTORS_PER_CAN if the id is out of bounds