 |
SimpleFOClibrary
2.1
|
float current_sp
target current ( q current )
LowPassFilter LPF_angle
parameter determining the angle low pass filter configuration
float zero_electric_angle
absolute zero electric angle - if available
float voltage_limit
Voltage limitting variable - global limit.
#define DEF_CURRENT_LIM
2Amps current limit by default
virtual float getVelocity()
float electrical_angle
current electrical angle
float shaft_velocity
current motor velocity
FOCModulationType foc_modulation
parameter derterniming modulation algorithm
float shaft_angle
current motor angle
float target
current target value - depends of the controller
TorqueControlType torque_controller
parameter determining the torque control type
#define DEF_VEL_LIM
angle velocity limit default
float _normalizeAngle(float angle)
int sensor_direction
if sensor_direction == Direction::CCW then direction will be flipped to CW
@ foc_current
torque control using dq currents
DQCurrent_s getFOCCurrents(float angle_el)
@ SinePWM
Sinusoidal PWM modulation.
#define DEF_POWER_SUPPLY
default power supply voltage
DQCurrent_s current
current d and q current measured
float current_limit
Current limitting variable - global limit.
void linkCurrentSense(CurrentSense *current_sense)
#define DEF_VOLTAGE_SENSOR_ALIGN
default voltage for sensor and motor zero alignemt
float sensor_offset
user defined sensor zero offset
DQVoltage_s voltage
current d and q voltage set to the motor
uint8_t monitor_variables
Bit array holding the map of variables the user wants to monitor.
LowPassFilter LPF_velocity
parameter determining the velocity Low pass filter configuration
CurrentSense * current_sense
unsigned int monitor_downsample
show monitor outputs each monitor_downsample calls
int pole_pairs
motor pole pairs number
Print * monitor_port
Serial terminal variable if provided.
void useMonitoring(Print &serial)
float voltage_sensor_align
sensor and motor align voltage parameter
void linkSensor(Sensor *sensor)
float velocity_limit
Velocity limitting variable - global limit.
float velocity_index_search
target velocity for index search
#define DEF_INDEX_SEARCH_TARGET_VELOCITY
default index search velocity
virtual float getAngle()=0