ArduCopter: add param loader properly implement parameters

* thanks tridge!
This commit is contained in:
Pat Hickey 2012-12-14 13:19:35 -08:00 committed by Andrew Tridgell
parent af12c18dea
commit d5d97be837

View File

@ -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