mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
MIXER frame extended to send information about number of motors and servos
This commit is contained in:
parent
37049a39f7
commit
5ad1396ff8
2 changed files with 4 additions and 2 deletions
|
@ -1301,6 +1301,8 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
|
|||
sbufWriteU8(dst, mixerConfig()->platformType);
|
||||
sbufWriteU8(dst, mixerConfig()->hasFlaps);
|
||||
sbufWriteU16(dst, mixerConfig()->appliedMixerPreset);
|
||||
sbufWriteU8(dst, MAX_SUPPORTED_MOTORS);
|
||||
sbufWriteU8(dst, MAX_SUPPORTED_SERVOS);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -2382,6 +2384,8 @@ static mspResult_e mspFcProcessInCommand(uint16_t cmdMSP, sbuf_t *src)
|
|||
mixerConfigMutable()->platformType = sbufReadU8(src);
|
||||
mixerConfigMutable()->hasFlaps = sbufReadU8(src);
|
||||
mixerConfigMutable()->appliedMixerPreset = sbufReadU16(src);
|
||||
sbufReadU8(src); //Read and ignore MAX_SUPPORTED_MOTORS
|
||||
sbufReadU8(src); //Read and ignore MAX_SUPPORTED_SERVOS
|
||||
mixerUpdateStateFlags();
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue