Browse Source

mavlink: fixed store of parameter values to eeprom

setting parameters via mavlink only saves them in memory. We need to
use AP_Var::save_all() to save them permanently

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1748 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
tridge60@gmail.com 14 years ago
parent
commit
c07dccd77c
  1. 14
      ArduCopterMega/GCS_Mavlink.pde

14
ArduCopterMega/GCS_Mavlink.pde

@ -239,21 +239,11 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) @@ -239,21 +239,11 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
break;
case MAV_ACTION_STORAGE_READ:
//read_EEPROM_startup();
//read_EEPROM_airstart_critical();
//read_command_index();
//read_EEPROM_flight_modes();
AP_Var::load_all();
break;
case MAV_ACTION_STORAGE_WRITE:
//save_EEPROM_trims();
//save_EEPROM_waypoint_info();
//save_EEPROM_gains();
//save_command_index();
//save_pressure_data();
//save_EEPROM_radio_minmax();
//save_user_configs();
//save_EEPROM_flight_modes();
AP_Var::save_all();
break;
case MAV_ACTION_CALIBRATE_RC: break;

Loading…
Cancel
Save