Browse Source

Rover: remove redundant SYS_NUM_RESETS

this is handled by AP_Stats library
master
Randy Mackay 8 years ago
parent
commit
6eceaef484
  1. 7
      APMrover2/Parameters.cpp
  2. 3
      APMrover2/Parameters.h
  3. 4
      APMrover2/system.cpp

7
APMrover2/Parameters.cpp

@ -31,13 +31,6 @@ const AP_Param::Info Rover::var_info[] = { @@ -31,13 +31,6 @@ const AP_Param::Info Rover::var_info[] = {
// @User: Advanced
GSCALAR(log_bitmask, "LOG_BITMASK", DEFAULT_LOG_BITMASK),
// @Param: SYS_NUM_RESETS
// @DisplayName: Num Resets
// @Description: Number of APM board resets
// @ReadOnly: True
// @User: Advanced
GSCALAR(num_resets, "SYS_NUM_RESETS", 0),
// @Param: RST_SWITCH_CH
// @DisplayName: Reset Switch Channel
// @Description: RC channel to use to reset to last flight mode after geofence takeover.

3
APMrover2/Parameters.h

@ -27,7 +27,7 @@ public: @@ -27,7 +27,7 @@ public:
// Misc
//
k_param_log_bitmask_old = 10, // unused
k_param_num_resets,
k_param_num_resets_old, // unused
k_param_reset_switch_chan,
k_param_initial_mode,
k_param_scheduler,
@ -212,7 +212,6 @@ public: @@ -212,7 +212,6 @@ public:
// Misc
//
AP_Int32 log_bitmask;
AP_Int16 num_resets;
AP_Int8 reset_switch_chan;
AP_Int8 initial_mode;

4
APMrover2/system.cpp

@ -66,10 +66,6 @@ void Rover::init_ardupilot() @@ -66,10 +66,6 @@ void Rover::init_ardupilot()
rssi.init();
// keep a record of how many resets have happened. This can be
// used to detect in-flight resets
g.num_resets.set_and_save(g.num_resets+1);
// init baro before we start the GCS, so that the CLI baro test works
barometer.init();

Loading…
Cancel
Save