Browse Source

Rover: removed inverted flight support

master
Andrew Tridgell 12 years ago
parent
commit
16b5b00368
  1. 2
      APMrover2/APMrover2.pde
  2. 1
      APMrover2/Parameters.h
  3. 1
      APMrover2/Parameters.pde
  4. 4
      APMrover2/config.h

2
APMrover2/APMrover2.pde

@ -375,8 +375,6 @@ byte control_mode = INITIALISING; @@ -375,8 +375,6 @@ byte control_mode = INITIALISING;
// Used to maintain the state of the previous control switch position
// This is set to -1 when we need to re-read the switch
byte oldSwitchPosition;
// This is used to enable the inverted flight feature
bool inverted_flight = false;
// These are trim values used for elevon control
// For elevons radio_in[CH_ROLL] and radio_in[CH_PITCH] are equivalent aileron and elevator, not left and right elevon
static uint16_t elevon1_trim = 1500;

1
APMrover2/Parameters.h

@ -323,7 +323,6 @@ public: @@ -323,7 +323,6 @@ public:
AP_Float curr_amp_per_volt;
AP_Float input_voltage;
AP_Int16 pack_capacity; // Battery pack capacity less reserve
AP_Int8 inverted_flight_ch; // 0=disabled, 1-8 is channel for inverted flight trigger
#if HIL_MODE != HIL_MODE_ATTITUDE
#if CONFIG_SONAR == ENABLED
AP_Int8 sonar_enabled;

1
APMrover2/Parameters.pde

@ -85,7 +85,6 @@ const AP_Param::Info var_info[] PROGMEM = { @@ -85,7 +85,6 @@ const AP_Param::Info var_info[] PROGMEM = {
GSCALAR(curr_amp_per_volt, "AMP_PER_VOLT", CURR_AMP_PER_VOLT),
GSCALAR(input_voltage, "INPUT_VOLTS", INPUT_VOLTAGE),
GSCALAR(pack_capacity, "BATT_CAPACITY", HIGH_DISCHARGE),
GSCALAR(inverted_flight_ch, "INVERTEDFLT_CH", 0),
#if HIL_MODE != HIL_MODE_ATTITUDE
#if CONFIG_SONAR == ENABLED
// @Param: SONAR_ENABLE

4
APMrover2/config.h

@ -781,10 +781,6 @@ @@ -781,10 +781,6 @@
# define USE_CURRENT_ALT FALSE
#endif
#ifndef INVERTED_FLIGHT_PWM
# define INVERTED_FLIGHT_PWM 1750
#endif
//////////////////////////////////////////////////////////////////////////////
// Developer Items
//

Loading…
Cancel
Save