Struct MotorConfiguration

Struct Documentation

struct MotorConfiguration

Structure that stores the motor configuration.

These parameters describe the motor’s electrical and mechanical properties, such as the number of pole pairs, the motor’s velocity constant (kv), phase resistance, and phase inductance. The limits characterize the safe operating range of the motor.

Public Functions

inline MotorConfiguration()
inline MotorConfiguration(int pole_pairs, float kv, float phase_resistance, float phase_inductance, float voltage_limit, float current_limit, float velocity_limit, float calibration_voltage)

Public Members

int pole_pairs = -1
float kv = NOT_SET
float phase_resistance = NOT_SET
float phase_inductance = NOT_SET
float voltage_limit = 1000.0f
float current_limit = 1000.0f
float velocity_limit = 1000.0f
float calibration_voltage = NOT_SET