Skip to content

Commit

Permalink
Sub: correct boot on boards with features missing
Browse files Browse the repository at this point in the history
parameters don't exist for defaulting, so config error loop is entered.  The config error loop also isn't working well this early in the boot, so the board is not perfectly informative.

Config Error: param deflt fail:BARO_PROBE_EXT
no link
Config Error: param deflt fail:BARO_PROBE_EXT
no link
no link
Config Error: param deflt fail:BARO_PROBE_EXT
no link
  • Loading branch information
peterbarker committed May 7, 2024
1 parent 07a5f61 commit b7541e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ArduSub/Parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,11 @@ static const struct AP_Param::defaults_table_struct defaults_table[] = {
{ "RC3_TRIM", 1100},
{ "COMPASS_OFFS_MAX", 1000},
{ "INS_GYR_CAL", 0},
#if HAL_MOUNT_ENABLED
{ "MNT1_TYPE", 1},
{ "MNT1_DEFLT_MODE", MAV_MOUNT_MODE_RC_TARGETING},
{ "MNT1_RC_RATE", 30},
#endif
{ "RC7_OPTION", 214}, // MOUNT1_YAW
{ "RC8_OPTION", 213}, // MOUNT1_PITCH
{ "MOT_PWM_MIN", 1100},
Expand All @@ -395,7 +397,9 @@ static const struct AP_Param::defaults_table_struct defaults_table[] = {
{ "PSC_VELXY_P", 6.0f},
{ "EK3_SRC1_VELZ", 0},
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR
#if AP_BARO_PROBE_EXT_PARAMETER_ENABLED
{ "BARO_PROBE_EXT", 0},
#endif
{ "BATT_MONITOR", 4},
{ "BATT_CAPACITY", 0},
{ "LEAK1_PIN", 27},
Expand All @@ -405,7 +409,9 @@ static const struct AP_Param::defaults_table_struct defaults_table[] = {
{ "SERVO16_FUNCTION", 7}, // k_mount_tilt
{ "SERVO16_REVERSED", 1},
#else
#if AP_BARO_PROBE_EXT_PARAMETER_ENABLED
{ "BARO_PROBE_EXT", 768},
#endif
{ "SERVO9_FUNCTION", 59}, // k_rcin9, lights 1
{ "SERVO10_FUNCTION", 7}, // k_mount_tilt
#endif
Expand Down

0 comments on commit b7541e0

Please sign in to comment.