Defaults¶
The settings of the firmware at the release this site describes: their start values in common.h, and what
EEPROM.cpp does with each.
- Start value: the value in
common.h. A setting the EEPROM does not keep starts from it at every power-up. A kept setting is replaced at power-up by the value in the EEPROM, so its start value is only seen before that. - After
#Default: what#Defaultwrites to the EEPROM and loads; — means#Defaultdoes not change it. - Kept by
#Save: whether#Save(Send_Save_config) stores it, so that it survives a power cycle.
Internal state (error flags, counters, calibration steps, scratch variables) is left out; the error flags are in
Errors and LED states. A name after a value, such as 160 (CURRENT_BANDWIDTH_DEFAULT), is the
constant in constants.h the value comes from. existing_id for the CAN ID means that #Default keeps a valid
stored ID (0 when none is stored). 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 | 111 in the EEPROM, not read back | written, not read back |
HARDWARE_VERSION |
1 | 1 | yes |
BATCH_DATE |
1 | 125 | 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 |
50 | 0 | 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 |
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 |
166 (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 |
60 (SPEED_PLL_BANDWIDTH_DEFAULT) | — | no |
Heartbeat_rate_ms |
0 | 0 | yes |
Calibrated |
1 | 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 |
brake_coast |
1 | 1 (BRAKE_COAST_DEFAULT) | yes |
trigger_value |
0 | — | no |
calibration_offset_current |
500 | — | no |
microstep |
16 | — | no |
gosteps |
0 | — | no |
step_interval |
1000 | — | no |
Voltage_limit |
6000 | 6000 | yes |
Reset_integral_accumulator |
0 | 0 | yes |
Kp_p |
5 | 5 | yes |
Position_setpoint |
0 | — | no |
Kp_v |
0.02 | 0.02 | yes |
Ki_v |
0.001 | 0.001 | yes |
Velocity_setpoint |
0 | — | no |
Velocity_limit |
800000 | 800000 | yes |
Velocity_limit_error |
30000000 | — | no |
Kp_id |
7 | 7 | yes |
Ki_id |
3 | 3 | yes |
Id_setpoint |
0 | — | no |
Kp_iq |
3 | 3 | yes |
Ki_iq |
0.3 | 0.3 | yes |
Iq_current_limit |
1700 | 1700 | yes |
Id_current_limit |
0 | 0 | yes |
Feedforward_current |
0 | — | no |
KD |
0.0028 | 0.0028 | yes |
KP |
0.1400 | 0.1400 | yes |
Uq_setpoint |
0 | — | no |
Ud_setpoint |
0 | — | no |
position_setpoint |
0 | — | no |
speed_setpoint |
50 | — | no |
current_setpoint |
400 | — | 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