File tree Expand file tree Collapse file tree 6 files changed +39
-0
lines changed
Expand file tree Collapse file tree 6 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 2828
2929#pragma once
3030
31+ #ifndef ENV_DEFECT_DETECTOR
3132#include " ../../CFA_Config.hpp"
33+ #endif
3234
3335namespace crsfProtocol
3436{
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ namespace serialReceiverLayer
182182 _flightModes[i].min = serialReceiver._flightModes [i].min ;
183183 _flightModes[i].max = serialReceiver._flightModes [i].max ;
184184 }
185+ _flightModeCallback = serialReceiver._flightModeCallback ;
185186#endif
186187
187188#if CRSF_LINK_STATISTICS_ENABLED > 0
Original file line number Diff line number Diff line change 2626
2727#pragma once
2828
29+ #ifndef ENV_DEFECT_DETECTOR
2930#include " ../CFA_Config.hpp"
31+ #endif
3032#include " Arduino.h"
3133#include " CRSF/CRSF.hpp"
3234#include " Telemetry/Telemetry.hpp"
Original file line number Diff line number Diff line change 2525 */
2626
2727#include " Telemetry.hpp"
28+ #ifndef ENV_DEFECT_DETECTOR
2829#include " CFA_Config.hpp"
30+ #endif
2931
3032using namespace crsfProtocol ;
3133
Original file line number Diff line number Diff line change 2525 */
2626
2727#include " CompatibilityTable.hpp"
28+ #ifndef ENV_DEFECT_DETECTOR
2829#include " ../../CFA_Config.hpp"
30+ #endif
2931#include " Arduino.h"
3032
3133namespace hal
Original file line number Diff line number Diff line change 11[env:defect_detector]
22board = adafruit_metro_m4
3+ build_flags =
4+ ; An isolated configuration from CFA_Config.hpp is used here to test EVERY possible
5+ ; configuration, and ensure that defects (if any) are picked up.
6+ ; The `ENV_DEFECT_DETECTOR` define configures CRSF for Arduino for use with the Defect Detector.
7+ -DENV_DEFECT_DETECTOR
8+
9+ -DCRSF_FAILSAFE_LQI_THRESHOLD =80
10+ -DCRSF_FAILSAFE_RSSI_THRESHOLD =105
11+
12+ -DCRSF_RC_ENABLED =1
13+ -DCRSF_RC_MAX_CHANNELS =16
14+ -DCRSF_RC_CHANNEL_MIN =172
15+ -DCRSF_RC_CHANNEL_MAX =1811
16+ -DCRSF_RC_CHANNEL_CENTER =992
17+ -DCRSF_RC_INITIALISE_CHANNELS =1
18+ -DCRSF_RC_INITIALISE_ARMCHANNEL =1
19+ -DCRSF_RC_INITIALISE_THROTTLECHANNEL =1
20+
21+ -DCRSF_FLIGHTMODES_ENABLED =1
22+ -DCRSF_CUSTOM_FLIGHT_MODES_ENABLED =1
23+
24+ -DCRSF_TELEMETRY_ENABLED =1
25+ -DCRSF_TELEMETRY_ATTITUDE_ENABLED =1
26+ -DCRSF_TELEMETRY_BAROALTITUDE_ENABLED =1
27+ -DCRSF_TELEMETRY_BATTERY_ENABLED =1
28+ -DCRSF_TELEMETRY_FLIGHTMODE_ENABLED =1
29+ -DCRSF_TELEMETRY_GPS_ENABLED =1
30+
31+ -DCRSF_LINK_STATISTICS_ENABLED =1
32+
333build_src_filter =
434 +<../examples/platformio/main.cpp>
535 +<*/*/*.cpp>
You can’t perform that action at this time.
0 commit comments