mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Update references for renamed mixer constants
This commit is contained in:
parent
dfd8e5b2b0
commit
5a51ca8d62
1 changed files with 8 additions and 2 deletions
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
#define ARRAY_LENGTH(x) (sizeof((x))/sizeof((x)[0]))
|
#define ARRAY_LENGTH(x) (sizeof((x))/sizeof((x)[0]))
|
||||||
|
|
||||||
// Some macros to make writing FLIGHT_LOG_FIELD_PREDICTOR_* constants shorter:
|
// Some macros to make writing FLIGHT_LOG_FIELD_* constants shorter:
|
||||||
#define STR_HELPER(x) #x
|
#define STR_HELPER(x) #x
|
||||||
#define STR(x) STR_HELPER(x)
|
#define STR(x) STR_HELPER(x)
|
||||||
|
|
||||||
|
@ -147,6 +147,12 @@ typedef struct blackboxGPSFieldDefinition_t {
|
||||||
uint8_t encode;
|
uint8_t encode;
|
||||||
} blackboxGPSFieldDefinition_t;
|
} blackboxGPSFieldDefinition_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Description of the blackbox fields we are writing in our main intra (I) and inter (P) frames. This description is
|
||||||
|
* written into the flight log header so the log can be properly interpreted (but these definitions don't actually cause
|
||||||
|
* the encoding to happen, we have to encode the flight log ourselves in write{Inter|Intra}frame() in a way that matches
|
||||||
|
* the encoding we've promised here).
|
||||||
|
*/
|
||||||
static const blackboxMainFieldDefinition_t blackboxMainFields[] = {
|
static const blackboxMainFieldDefinition_t blackboxMainFields[] = {
|
||||||
/* loopIteration doesn't appear in P frames since it always increments */
|
/* loopIteration doesn't appear in P frames since it always increments */
|
||||||
{"loopIteration", UNSIGNED, .Ipredict = PREDICT(0), .Iencode = ENCODING(UNSIGNED_VB), .Ppredict = PREDICT(INC), .Pencode = FLIGHT_LOG_FIELD_ENCODING_NULL, CONDITION(ALWAYS)},
|
{"loopIteration", UNSIGNED, .Ipredict = PREDICT(0), .Iencode = ENCODING(UNSIGNED_VB), .Ppredict = PREDICT(INC), .Pencode = FLIGHT_LOG_FIELD_ENCODING_NULL, CONDITION(ALWAYS)},
|
||||||
|
@ -528,7 +534,7 @@ static bool testBlackboxCondition(FlightLogFieldCondition condition)
|
||||||
case FLIGHT_LOG_FIELD_CONDITION_AT_LEAST_MOTORS_8:
|
case FLIGHT_LOG_FIELD_CONDITION_AT_LEAST_MOTORS_8:
|
||||||
return motorCount >= 8;
|
return motorCount >= 8;
|
||||||
case FLIGHT_LOG_FIELD_CONDITION_TRICOPTER:
|
case FLIGHT_LOG_FIELD_CONDITION_TRICOPTER:
|
||||||
return masterConfig.mixerConfiguration == MULTITYPE_TRI;
|
return masterConfig.mixerMode == MIXER_TRI;
|
||||||
case FLIGHT_LOG_FIELD_CONDITION_NEVER:
|
case FLIGHT_LOG_FIELD_CONDITION_NEVER:
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue