mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 16:55:29 +03:00
Update mixer to use servo count from results of pwm mapping.
Also ensure that only aux channels for which there are available servos are used when forwarding channels. Removed magic number usage.
This commit is contained in:
parent
51366ed629
commit
fd59a4cd52
5 changed files with 43 additions and 22 deletions
|
@ -54,6 +54,12 @@ typedef struct drv_pwm_config_t {
|
|||
uint16_t servoCenterPulse;
|
||||
} drv_pwm_config_t;
|
||||
|
||||
|
||||
typedef struct pwmOutputConfiguration_s {
|
||||
uint8_t servoCount;
|
||||
uint8_t motorCount;
|
||||
} pwmOutputConfiguration_t;
|
||||
|
||||
// This indexes into the read-only hardware definition structure, timerHardware_t, as well as into pwmPorts structure with dynamic data.
|
||||
enum {
|
||||
PWM1 = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue