mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Rover: removed inverted flight support
This commit is contained in:
parent
741dc022f3
commit
41b76b5320
@ -375,8 +375,6 @@ byte control_mode = INITIALISING;
|
|||||||
// Used to maintain the state of the previous control switch position
|
// Used to maintain the state of the previous control switch position
|
||||||
// This is set to -1 when we need to re-read the switch
|
// This is set to -1 when we need to re-read the switch
|
||||||
byte oldSwitchPosition;
|
byte oldSwitchPosition;
|
||||||
// This is used to enable the inverted flight feature
|
|
||||||
bool inverted_flight = false;
|
|
||||||
// These are trim values used for elevon control
|
// 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
|
// 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;
|
static uint16_t elevon1_trim = 1500;
|
||||||
|
@ -323,7 +323,6 @@ public:
|
|||||||
AP_Float curr_amp_per_volt;
|
AP_Float curr_amp_per_volt;
|
||||||
AP_Float input_voltage;
|
AP_Float input_voltage;
|
||||||
AP_Int16 pack_capacity; // Battery pack capacity less reserve
|
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 HIL_MODE != HIL_MODE_ATTITUDE
|
||||||
#if CONFIG_SONAR == ENABLED
|
#if CONFIG_SONAR == ENABLED
|
||||||
AP_Int8 sonar_enabled;
|
AP_Int8 sonar_enabled;
|
||||||
|
@ -85,7 +85,6 @@ const AP_Param::Info var_info[] PROGMEM = {
|
|||||||
GSCALAR(curr_amp_per_volt, "AMP_PER_VOLT", CURR_AMP_PER_VOLT),
|
GSCALAR(curr_amp_per_volt, "AMP_PER_VOLT", CURR_AMP_PER_VOLT),
|
||||||
GSCALAR(input_voltage, "INPUT_VOLTS", INPUT_VOLTAGE),
|
GSCALAR(input_voltage, "INPUT_VOLTS", INPUT_VOLTAGE),
|
||||||
GSCALAR(pack_capacity, "BATT_CAPACITY", HIGH_DISCHARGE),
|
GSCALAR(pack_capacity, "BATT_CAPACITY", HIGH_DISCHARGE),
|
||||||
GSCALAR(inverted_flight_ch, "INVERTEDFLT_CH", 0),
|
|
||||||
#if HIL_MODE != HIL_MODE_ATTITUDE
|
#if HIL_MODE != HIL_MODE_ATTITUDE
|
||||||
#if CONFIG_SONAR == ENABLED
|
#if CONFIG_SONAR == ENABLED
|
||||||
// @Param: SONAR_ENABLE
|
// @Param: SONAR_ENABLE
|
||||||
|
@ -781,10 +781,6 @@
|
|||||||
# define USE_CURRENT_ALT FALSE
|
# define USE_CURRENT_ALT FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef INVERTED_FLIGHT_PWM
|
|
||||||
# define INVERTED_FLIGHT_PWM 1750
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// Developer Items
|
// Developer Items
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user