SimpleFOClibrary 2.4.0
Loading...
Searching...
No Matches
commands.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CMD_C_D_PID   'D'
 current d PID & LPF
 
#define CMD_C_Q_PID   'Q'
 current q PID & LPF
 
#define CMD_V_PID   'V'
 velocity PID & LPF
 
#define CMD_A_PID   'A'
 angle PID & LPF
 
#define CMD_STATUS   'E'
 motor status enable/disable
 
#define CMD_LIMITS   'L'
 limits current/voltage/velocity
 
#define CMD_MOTION_TYPE   'C'
 motion control type
 
#define CMD_TORQUE_TYPE   'T'
 torque control type
 
#define CMD_SENSOR   'S'
 sensor offsets
 
#define CMD_MONITOR   'M'
 monitoring
 
#define CMD_RESIST   'R'
 motor phase resistance
 
#define CMD_INDUCTANCE   'I'
 motor phase inductance
 
#define CMD_KV_RATING   'K'
 motor kv rating
 
#define CMD_PWMMOD   'W'
 pwm modulation
 
#define CMD_FOC_PARAMS   'F'
 time parameters
 
#define CMD_SCAN   '?'
 command scaning the network - only for commander
 
#define CMD_VERBOSE   '@'
 command setting output mode - only for commander
 
#define CMD_DECIMAL   '#'
 command setting decimal places - only for commander
 
#define SCMD_PID_P   'P'
 PID gain P.
 
#define SCMD_PID_I   'I'
 PID gain I.
 
#define SCMD_PID_D   'D'
 PID gain D.
 
#define SCMD_PID_RAMP   'R'
 PID ramp.
 
#define SCMD_PID_LIM   'L'
 PID limit.
 
#define SCMD_LPF_TF   'F'
 LPF time constant.
 
#define SCMD_LIM_CURR   'C'
 Limit current.
 
#define SCMD_LIM_VOLT   'U'
 Limit voltage.
 
#define SCMD_LIM_VEL   'V'
 Limit velocity.
 
#define SCMD_SENS_MECH_OFFSET   'M'
 Sensor offset.
 
#define SCMD_SENS_ELEC_OFFSET   'E'
 Sensor electrical zero offset.
 
#define SCMD_DOWNSAMPLE   'D'
 Monitoring downsample value.
 
#define SCMD_CLEAR   'C'
 Clear all monitored variables.
 
#define SCMD_GET   'G'
 Get variable only one value.
 
#define SCMD_SET   'S'
 Set variables to be monitored.
 
#define SCMD_TIME   'T'
 Time between executions (filtered)
 
#define SCMD_PWMMOD_TYPE   'T'
 < Pwm modulation type
 
#define SCMD_PWMMOD_CENTER   'C'
 < Pwm modulation center flag
 
#define SCMD_REINIT_FOC   'R'
 reinitialize FOC
 
#define SCMD_TUNE_CURR   'C'
 tune current controller
 
#define SCMD_MEAS_PARAMS   'P'
 measure motor parameters (resistance and inductance)
 
#define SCMD_INDUCT_D   'D'
 inductance d axis
 
#define SCMD_INDUCT_Q   'Q'
 inductance q axis
 

Macro Definition Documentation

◆ CMD_A_PID

#define CMD_A_PID   'A'

angle PID & LPF

Definition at line 10 of file commands.h.

◆ CMD_C_D_PID

#define CMD_C_D_PID   'D'

current d PID & LPF

Definition at line 7 of file commands.h.

◆ CMD_C_Q_PID

#define CMD_C_Q_PID   'Q'

current q PID & LPF

Definition at line 8 of file commands.h.

◆ CMD_DECIMAL

#define CMD_DECIMAL   '#'

command setting decimal places - only for commander

Definition at line 26 of file commands.h.

◆ CMD_FOC_PARAMS

#define CMD_FOC_PARAMS   'F'

time parameters

Definition at line 21 of file commands.h.

◆ CMD_INDUCTANCE

#define CMD_INDUCTANCE   'I'

motor phase inductance

Definition at line 18 of file commands.h.

◆ CMD_KV_RATING

#define CMD_KV_RATING   'K'

motor kv rating

Definition at line 19 of file commands.h.

◆ CMD_LIMITS

#define CMD_LIMITS   'L'

limits current/voltage/velocity

Definition at line 12 of file commands.h.

◆ CMD_MONITOR

#define CMD_MONITOR   'M'

monitoring

Definition at line 16 of file commands.h.

◆ CMD_MOTION_TYPE

#define CMD_MOTION_TYPE   'C'

motion control type

Definition at line 13 of file commands.h.

◆ CMD_PWMMOD

#define CMD_PWMMOD   'W'

pwm modulation

Definition at line 20 of file commands.h.

◆ CMD_RESIST

#define CMD_RESIST   'R'

motor phase resistance

Definition at line 17 of file commands.h.

◆ CMD_SCAN

#define CMD_SCAN   '?'

command scaning the network - only for commander

Definition at line 24 of file commands.h.

◆ CMD_SENSOR

#define CMD_SENSOR   'S'

sensor offsets

Definition at line 15 of file commands.h.

◆ CMD_STATUS

#define CMD_STATUS   'E'

motor status enable/disable

Definition at line 11 of file commands.h.

◆ CMD_TORQUE_TYPE

#define CMD_TORQUE_TYPE   'T'

torque control type

Definition at line 14 of file commands.h.

◆ CMD_V_PID

#define CMD_V_PID   'V'

velocity PID & LPF

Definition at line 9 of file commands.h.

◆ CMD_VERBOSE

#define CMD_VERBOSE   '@'

command setting output mode - only for commander

Definition at line 25 of file commands.h.

◆ SCMD_CLEAR

#define SCMD_CLEAR   'C'

Clear all monitored variables.

Definition at line 45 of file commands.h.

◆ SCMD_DOWNSAMPLE

#define SCMD_DOWNSAMPLE   'D'

Monitoring downsample value.

Definition at line 44 of file commands.h.

◆ SCMD_GET

#define SCMD_GET   'G'

Get variable only one value.

Definition at line 46 of file commands.h.

◆ SCMD_INDUCT_D

#define SCMD_INDUCT_D   'D'

inductance d axis

Definition at line 60 of file commands.h.

◆ SCMD_INDUCT_Q

#define SCMD_INDUCT_Q   'Q'

inductance q axis

Definition at line 61 of file commands.h.

◆ SCMD_LIM_CURR

#define SCMD_LIM_CURR   'C'

Limit current.

Definition at line 37 of file commands.h.

◆ SCMD_LIM_VEL

#define SCMD_LIM_VEL   'V'

Limit velocity.

Definition at line 39 of file commands.h.

◆ SCMD_LIM_VOLT

#define SCMD_LIM_VOLT   'U'

Limit voltage.

Definition at line 38 of file commands.h.

◆ SCMD_LPF_TF

#define SCMD_LPF_TF   'F'

LPF time constant.

Definition at line 35 of file commands.h.

◆ SCMD_MEAS_PARAMS

#define SCMD_MEAS_PARAMS   'P'

measure motor parameters (resistance and inductance)

Definition at line 57 of file commands.h.

◆ SCMD_PID_D

#define SCMD_PID_D   'D'

PID gain D.

Definition at line 32 of file commands.h.

◆ SCMD_PID_I

#define SCMD_PID_I   'I'

PID gain I.

Definition at line 31 of file commands.h.

◆ SCMD_PID_LIM

#define SCMD_PID_LIM   'L'

PID limit.

Definition at line 34 of file commands.h.

◆ SCMD_PID_P

#define SCMD_PID_P   'P'

PID gain P.

Definition at line 30 of file commands.h.

◆ SCMD_PID_RAMP

#define SCMD_PID_RAMP   'R'

PID ramp.

Definition at line 33 of file commands.h.

◆ SCMD_PWMMOD_CENTER

#define SCMD_PWMMOD_CENTER   'C'

< Pwm modulation center flag

Definition at line 52 of file commands.h.

◆ SCMD_PWMMOD_TYPE

#define SCMD_PWMMOD_TYPE   'T'

< Pwm modulation type

Definition at line 51 of file commands.h.

◆ SCMD_REINIT_FOC

#define SCMD_REINIT_FOC   'R'

reinitialize FOC

Definition at line 55 of file commands.h.

◆ SCMD_SENS_ELEC_OFFSET

#define SCMD_SENS_ELEC_OFFSET   'E'

Sensor electrical zero offset.

Definition at line 42 of file commands.h.

◆ SCMD_SENS_MECH_OFFSET

#define SCMD_SENS_MECH_OFFSET   'M'

Sensor offset.

Definition at line 41 of file commands.h.

◆ SCMD_SET

#define SCMD_SET   'S'

Set variables to be monitored.

Definition at line 47 of file commands.h.

◆ SCMD_TIME

#define SCMD_TIME   'T'

Time between executions (filtered)

Definition at line 48 of file commands.h.

◆ SCMD_TUNE_CURR

#define SCMD_TUNE_CURR   'C'

tune current controller

Definition at line 56 of file commands.h.