fix errors in crazyflie and navio builds

This commit is contained in:
Mark Whitehorn
2016-11-07 16:24:30 -07:00
committed by Lorenz Meier
parent d4c707e698
commit 876ab45bf3
2 changed files with 3 additions and 0 deletions

View File

@@ -172,6 +172,7 @@
#define PWM_HIGHEST_MAX 255
#define PWM_DEFAULT_MAX 255
#define PWM_LOWEST_MAX 255
#define PWM_DEFAULT_TRIM 1500
/* High-resolution timer */

View File

@@ -352,6 +352,7 @@ void task_main(int argc, char *argv[])
uint16_t disarmed_pwm[4];
uint16_t min_pwm[4];
uint16_t max_pwm[4];
uint16_t trim_pwm[4] {};
for (unsigned int i = 0; i < 4; i++) {
disarmed_pwm[i] = _pwm_disarmed;
@@ -369,6 +370,7 @@ void task_main(int argc, char *argv[])
disarmed_pwm,
min_pwm,
max_pwm,
trim_pwm,
_outputs.output,
pwm,
&_pwm_limit);