From f6ecf097e1734ec89b41e7cd696e196da730851b Mon Sep 17 00:00:00 2001 From: Thorsten Laux Date: Fri, 1 Mar 2019 13:24:21 +0100 Subject: [PATCH] allow use of dshot bidir on targets without burst --- src/main/cli/settings.c | 2 +- src/main/target/SPRACINGF3/target.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index e225bad9b2..c2afdfc52d 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -722,10 +722,10 @@ const clivalue_t valueTable[] = { { "dshot_idle_value", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { 0, 2000 }, PG_MOTOR_CONFIG, offsetof(motorConfig_t, digitalIdleOffsetValue) }, #ifdef USE_DSHOT_DMAR { "dshot_burst", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_MOTOR_CONFIG, offsetof(motorConfig_t, dev.useBurstDshot) }, +#endif #ifdef USE_DSHOT_TELEMETRY { "dshot_bidir", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_MOTOR_CONFIG, offsetof(motorConfig_t, dev.useDshotTelemetry) }, #endif -#endif #endif { "use_unsynced_pwm", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_MOTOR_CONFIG, offsetof(motorConfig_t, dev.useUnsyncedPwm) }, { "motor_pwm_protocol", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_MOTOR_PWM_PROTOCOL }, PG_MOTOR_CONFIG, offsetof(motorConfig_t, dev.motorPwmProtocol) }, diff --git a/src/main/target/SPRACINGF3/target.h b/src/main/target/SPRACINGF3/target.h index 79623030bc..a7e931927f 100644 --- a/src/main/target/SPRACINGF3/target.h +++ b/src/main/target/SPRACINGF3/target.h @@ -208,6 +208,22 @@ #define DEFAULT_FEATURES (FEATURE_RSSI_ADC | FEATURE_TELEMETRY) #endif +#undef USE_OSD +#undef USE_ACRO_TRAINER +#undef USE_PPM +#undef SERIAL_RX_IBUS +#undef USE_GYRO_REGISTER_DUMP +#undef USE_SERIALRX_SUMD +#undef USE_LED_STRIP +#undef USE_DSHOT_DMAR +#undef USE_SERVOS +#define USE_ABSOLUTE_CONTROL +#define USE_DSHOT_TELEMETRY +#define USE_RPM_FILTER +#define USE_AIRMODE_LPF + + + // IO - stm32f303cc in 48pin package #define TARGET_IO_PORTA 0xffff #define TARGET_IO_PORTB 0xffff