于betaflight3.4飞控制固件变大,导致F3芯片空间不够,无法使用GPS救援模式,我开源中精简某些功能,让F3飞行控制还支持GPS返回功能,配置文件请看我修改过的部分! 一切权利规betaflight原作者,我只是重新编释,让f3也带上gps救缓功能 下载请到: https://gitee.com/test386/betaflight/ 如果大家有需要精简别的f3飞控固件的可以留言,
BETAFLIGHTF3与SPRACINGF BETAFLIGHTF3@SPRACINGF3.zip
//新增gps功能
#define USE_DASHBOARD
#define USE_GPS
#define USE_GPS_NMEA
#define USE_GPS_UBLOX
#define USE_GPS_RESCUE
精简掉的功能: 这是精简掉功能,所有带//功能都精简掉
#define USE_SERIAL_RX
// #define USE_SERIALRX_CRSF // Team Black Sheep Crossfire protocol
#define USE_SERIALRX_IBUS // FlySky and Turnigy receivers
#define USE_SERIALRX_SBUS // Frsky and Futaba receivers
// #define USE_SERIALRX_SPEKTRUM // SRXL, DSM2 and DSMX protocol
// #define USE_SERIALRX_SUMD // Graupner Hott protocol
// #define USE_SERIALRX_SUMH // Graupner legacy protocol
// #define USE_SERIALRX_XBUS // JR
#if (FLASH_SIZE > 64)
#define MAX_PROFILE_COUNT 2 // 原值是2
#else
#define MAX_PROFILE_COUNT 2 // 原值是3
#endif
#if (FLASH_SIZE > 64)
#define USE_ACRO_TRAINER
#define USE_BLACKBOX
// #define USE_LED_STRIP
#define USE_RESOURCE_MGMT
#define USE_RUNAWAY_TAKEOFF // Runaway Takeoff Prevention (anti-taz)
#define USE_SERVOS
#define USE_TELEMETRY
// #define USE_TELEMETRY_FRSKY_HUB
// #define USE_TELEMETRY_HOTT
// #define USE_TELEMETRY_LTM
#define USE_TELEMETRY_SMARTPORT
#endif
#if (FLASH_SIZE > 128)
#define USE_CAMERA_CONTROL
#define USE_CMS
#define USE_EXTENDED_CMS_MENUS
#define USE_DSHOT_DMAR
#define USE_GYRO_OVERFLOW_CHECK
#define USE_YAW_SPIN_RECOVERY
#define USE_HUFFMAN
#define USE_MSP_DISPLAYPORT
#define USE_MSP_OVER_TELEMETRY
#define USE_PINIO
#define USE_PINIOBOX
#define USE_RCDEVICE
#define USE_RTC_TIME
#define USE_RX_MSP
// #define USE_SERIALRX_FPORT // FrSky FPort
// #define USE_TELEMETRY_CRSF
// #define USE_TELEMETRY_SRXL
#define USE_VIRTUAL_CURRENT_METER
#define USE_VTX_COMMON
#define USE_VTX_CONTROL
#define USE_VTX_SMARTAUDIO
#define USE_VTX_TRAMP
#define USE_GYRO_LPF2
#define USE_ESC_SENSOR
#define USE_ESC_SENSOR_INFO
#define USE_CRSF_CMS_TELEMETRY
#define USE_BOARD_INFO
#define USE_SMART_FEEDFORWARD
#define USE_THROTTLE_BOOST
#define USE_RC_SMOOTHING_FILTER
#define USE_ITERM_RELAX
#ifdef USE_SERIALRX_SPEKTRUM
// #define USE_SPEKTRUM_BIND
// #define USE_SPEKTRUM_BIND_PLUG
// #define USE_SPEKTRUM_REAL_RSSI
// #define USE_SPEKTRUM_FAKE_RSSI
// #define USE_SPEKTRUM_RSSI_PERCENT_CONVERSION
// #define USE_SPEKTRUM_VTX_CONTROL
// #define USE_SPEKTRUM_VTX_TELEMETRY
// #define USE_SPEKTRUM_CMS_TELEMETRY
#endif
#endif |
|