Defaults¶
The settings of the firmware, read from its source at the release this site describes. The table leaves out the firmware's internal state (counters, flags, scratch variables).
- Start value is the value in the firmware's structures (
common.h). At power-up the firmware loads the saved settings from the EEPROM over it, so for a setting that#Savekeeps the start value only shows until the EEPROM is read. - After
#Defaultis what the driver runs with after#Default, which writes the factory values to the EEPROM and loads them. A fresh board, and a board whose saved configuration fails its check at power-up, gets the same values. - Kept by
#Savesays whether the setting survives a power cycle. No means the driver starts with the start value again after every power-up.
#Default also erases the calibration; from firmware 109 it keeps a valid stored CAN node ID (existing_id in
the table; 0 when none is stored); see Saving the configuration. A name after a value,
such as 160 (CURRENT_BANDWIDTH_DEFAULT), is the constant in constants.h the value comes from. The settings of
firmware 109 that are parameters, the anti-cogging and the encoder table among them, are in the
parameter table with their defaults.
| Variable and firmware comment | Start value | After #Default |
Kept by #Save |
|---|---|---|---|
SERIAL_NUMBER |
1 | 1111 in the EEPROM, not read back | written, not read back |
HARDWARE_VERSION |
1 | 1 | yes |
BATCH_DATE |
1 | 24092024 | yes |
SOFTWARE_VERSION |
1 | 110 | no: set by the firmware |
I_AM_GRIPPER |
1 | 0 | yes |
LED_ON_OFF |
1 | 1 | yes |
theta_offset |
0.0f | 0 | yes |
pole_pairs |
11 | 7 | yes |
current_control_bandwidth |
160 (CURRENT_BANDWIDTH_DEFAULT) | — | no |
DIR_ |
1 | 0 | yes |
Phase_order |
2 | 0 | yes |
commutation_dir |
1 | 1 | yes |
Thermistor_on_off |
0 | 0 | yes |
brake_coast |
0 | 0 (BRAKE_COAST_DEFAULT) | yes |
Resistance |
0 | 0 | yes |
Total_Resistance |
0 | 0 | yes |
Inductance |
0 | 0 | yes |
Kt |
0 | 0 | yes |
flux_linkage |
0 | 0 | yes |
KV |
0 | 0 | yes |
Max_temperature |
75 | 75 | yes |
Min_temperature |
-20 | — | no |
Max_Vbus |
29500 | 29000 | yes |
Min_Vbus |
9000 | — | no |
watchdog_time_ms |
0 | 0 | yes |
watchdog_action |
0 | 0 | yes |
wd_fallback_time_ms |
2000 | 2000 | yes |
wd_fallback_current |
0 | 0 | yes |
wd_fallback_speed |
1000 | 1000 | yes |
wd_after_action |
0 | 0 (WD_ACTION_LEGACY) | yes |
calibration_id |
0 | 0 in the EEPROM, not read back | written, not read back |
tool_id |
0 | 0 | yes |
board_product |
0 | 0 | yes |
sense1_offset |
0 | — | no |
sense2_offset |
0 | — | no |
comm_delay_us |
234 (COMM_DELAY_DEFAULT_US) | — | no |
input_filter_hz |
0 | — | no |
vel_int_deadband |
0 | — | no |
sound_limit_mv |
2000 (SOUND_LIMIT_DEFAULT_MV) | — | no |
sound_axis |
1 | — | no |
fast_trig |
0 | — | no |
speed_estimator |
2 (SPEED_ESTIMATOR_DEFAULT) | — | no |
speed_pll_bandwidth |
100 (SPEED_PLL_BANDWIDTH_DEFAULT) | — | no |
Heartbeat_rate_ms |
0 | 0 | yes |
Calibrated |
0 | 0 | yes |
Resistance_calc_voltage |
1000 | — | no |
Calibration_power |
12 | — | no |
Open_loop_voltage |
5000 | — | no |
Open_loop_speed |
20.0 | — | no |
Phase_voltage |
5000 | — | no |
cyclic_period |
0 | — | no |
CAN_ID |
0 | existing_id | yes |
calibration_offset_current |
300 | — | no |
Voltage_limit |
0 | 0 | yes |
Reset_integral_accumulator |
0 | 0 | yes |
Kp_p |
11 | 11 | yes |
Position_setpoint |
0 | — | no |
Kp_v |
0.03 | 0.03 | yes |
Ki_v |
0.0003 | 0.0003 | yes |
Velocity_setpoint |
0 | — | no |
Velocity_limit |
800000 | 800000 | yes |
Velocity_limit_error |
20000000 | — | no |
Kp_id |
3 | 3 | yes |
Ki_id |
1.5 | 1.5 | yes |
Id_setpoint |
0 | — | no |
Kp_iq |
3 | 3 | yes |
Ki_iq |
1.5 | 1.5 | yes |
Iq_current_limit |
1000 | 1000 | yes |
Id_current_limit |
0 | 0 | yes |
Feedforward_current |
0 | — | no |
KD |
0.002800 | 0.0028 | yes |
KP |
0.14000 | 0.1400 | yes |
Uq_setpoint |
0 | — | no |
Ud_setpoint |
0 | — | no |
position_setpoint |
0 | — | no |
speed_setpoint |
20 | — | no |
current_setpoint |
200 | — | no |
action_status |
0 | — | no |
activated |
0 | — | no |
release_direction |
0 | — | no |
estop_status |
0 | — | no |
Comments
Found a mistake on this page? Edit it on GitHub · Report it · Get help · This page as Markdown · llms.txt · The whole manual as PDF