mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
ArduCopter: add param loader properly implement parameters
* thanks tridge!
This commit is contained in:
parent
af12c18dea
commit
d5d97be837
@ -892,11 +892,14 @@ void get_throttle_althold(int32_t target_alt, int16_t max_climb_rate = ALTHOLD_M
|
|||||||
// Top-level logic
|
// Top-level logic
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// setup the var_info table
|
||||||
|
AP_Param param_loader(var_info, WP_START_BYTE);
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
cliSerial = hal.console;
|
cliSerial = hal.console;
|
||||||
|
|
||||||
// Load the default values of variables listed in var_info[]s
|
// Load the default values of variables listed in var_info[]s
|
||||||
//AP_Param::setup_sketch_defaults();
|
AP_Param::setup_sketch_defaults();
|
||||||
|
|
||||||
#if CONFIG_SONAR == ENABLED
|
#if CONFIG_SONAR == ENABLED
|
||||||
#if CONFIG_SONAR_SOURCE == SONAR_SOURCE_ADC
|
#if CONFIG_SONAR_SOURCE == SONAR_SOURCE_ADC
|
||||||
|
Loading…
Reference in New Issue
Block a user