Updates for AlienFlightNG Whoop V2.0
This commit is contained in:
parent
21eedd80a7
commit
017967950f
|
@ -90,7 +90,7 @@ void targetConfiguration(void)
|
||||||
rxConfigMutable()->serialrx_provider = SERIALRX_SPEKTRUM2048;
|
rxConfigMutable()->serialrx_provider = SERIALRX_SPEKTRUM2048;
|
||||||
rxConfigMutable()->spektrum_sat_bind = 5;
|
rxConfigMutable()->spektrum_sat_bind = 5;
|
||||||
rxConfigMutable()->spektrum_sat_bind_autoreset = 1;
|
rxConfigMutable()->spektrum_sat_bind_autoreset = 1;
|
||||||
voltageSensorADCConfigMutable(VOLTAGE_SENSOR_ADC_VBAT)->vbatscale = VBAT_SCALE;
|
parseRcChannels("TAER1234", rxConfigMutable());
|
||||||
} else {
|
} else {
|
||||||
rxConfigMutable()->serialrx_provider = SERIALRX_SBUS;
|
rxConfigMutable()->serialrx_provider = SERIALRX_SBUS;
|
||||||
rxConfigMutable()->sbus_inversion = 0;
|
rxConfigMutable()->sbus_inversion = 0;
|
||||||
|
@ -99,6 +99,7 @@ void targetConfiguration(void)
|
||||||
featureSet(FEATURE_TELEMETRY);
|
featureSet(FEATURE_TELEMETRY);
|
||||||
beeperDevConfigMutable()->isOpenDrain = false;
|
beeperDevConfigMutable()->isOpenDrain = false;
|
||||||
beeperDevConfigMutable()->isInverted = true;
|
beeperDevConfigMutable()->isInverted = true;
|
||||||
|
parseRcChannels("AETR1234", rxConfigMutable());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hardwareMotorType == MOTOR_BRUSHED) {
|
if (hardwareMotorType == MOTOR_BRUSHED) {
|
||||||
|
|
|
@ -110,6 +110,7 @@
|
||||||
|
|
||||||
#define ADC_INSTANCE ADC2
|
#define ADC_INSTANCE ADC2
|
||||||
#define VBAT_ADC_PIN PA4
|
#define VBAT_ADC_PIN PA4
|
||||||
|
#define VBAT_SCALE_DEFAULT 20
|
||||||
|
|
||||||
// LED strip configuration.
|
// LED strip configuration.
|
||||||
#define LED_STRIP
|
#define LED_STRIP
|
||||||
|
@ -119,7 +120,6 @@
|
||||||
#define DEFAULT_FEATURES FEATURE_MOTOR_STOP
|
#define DEFAULT_FEATURES FEATURE_MOTOR_STOP
|
||||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||||
#define SERIALRX_UART SERIAL_PORT_USART2
|
#define SERIALRX_UART SERIAL_PORT_USART2
|
||||||
#define RX_CHANNELS_TAER
|
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue