feat: Flysky PL18 Support (#4105)
Co-authored-by: raphaelcoeffic <raphael.coeffic@frafos.com> Co-authored-by: rotorman <risto.koiva@web.de> Co-authored-by: Xy201207 <yaoxu@flysky.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
raphaelcoeffic
rotorman
Xy201207
Peter Feerick
parent
5153aaeea0
commit
cc17046e7a
@@ -39,7 +39,7 @@
|
||||
#define LABELS_LENGTH 100 // Maximum length of the label string
|
||||
#define LABEL_LENGTH 16
|
||||
|
||||
#if defined(PCBHORUS) || defined(PCBNV14)
|
||||
#if defined(PCBHORUS) || defined(PCBNV14) || defined(PCBPL18)
|
||||
#define MAX_MODELS 60
|
||||
#define MAX_OUTPUT_CHANNELS 32 // number of real output channels CH1-CH32
|
||||
#define MAX_FLIGHT_MODES 9
|
||||
@@ -98,7 +98,7 @@ enum CurveType {
|
||||
#define MIN_POINTS_PER_CURVE 3
|
||||
#define MAX_POINTS_PER_CURVE 17
|
||||
|
||||
#if defined(PCBHORUS) || defined(PCBNV14)
|
||||
#if defined(PCBHORUS) || defined(PCBNV14) || defined(PCBPL18)
|
||||
#define LEN_MODEL_NAME 15
|
||||
#define LEN_TIMER_NAME 8
|
||||
#define LEN_FLIGHT_MODE_NAME 10
|
||||
@@ -408,10 +408,10 @@ enum PotsWarnMode {
|
||||
#define MAX_FLEX_SWITCHES 0
|
||||
#endif
|
||||
|
||||
#if defined(RADIO_T20)
|
||||
#define MAX_TRIMS 8
|
||||
#if NUM_TRIMS > 6
|
||||
#define MAX_TRIMS 8
|
||||
#else
|
||||
#define MAX_TRIMS 6
|
||||
#define MAX_TRIMS 6
|
||||
#endif
|
||||
|
||||
#define MAX_XPOTS_POSITIONS (MAX_POTS * XPOTS_MULTIPOS_COUNT)
|
||||
@@ -428,6 +428,13 @@ enum SwitchSources {
|
||||
SWSRC_FIRST_TRIM SKIP,
|
||||
SWSRC_LAST_TRIM SKIP = SWSRC_FIRST_TRIM + 2 * MAX_TRIMS - 1,
|
||||
|
||||
#if NUM_TRIMS > 6
|
||||
SWSRC_TrimT7Down,
|
||||
SWSRC_TrimT7Up,
|
||||
SWSRC_TrimT8Down,
|
||||
SWSRC_TrimT8Up,
|
||||
#endif
|
||||
|
||||
SWSRC_FIRST_LOGICAL_SWITCH SKIP,
|
||||
SWSRC_LAST_LOGICAL_SWITCH SKIP = SWSRC_FIRST_LOGICAL_SWITCH + MAX_LOGICAL_SWITCHES - 1,
|
||||
|
||||
@@ -605,7 +612,7 @@ enum Functions {
|
||||
#if defined(DEBUG)
|
||||
FUNC_MAX SKIP
|
||||
#else
|
||||
FUNC_MAX SKIP = FUNC_TEST - 1
|
||||
FUNC_MAX SKIP = FUNC_TEST
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user