mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +08:00
[airborne] error if trying to USE_SERVOS_7AND8 and USE_I2C1 at the same time
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
<subsystem name="actuators" type="pwm_supervision">
|
||||
<define name="SERVO_HZ" value="400"/>
|
||||
<define name="USE_SERVOS_7AND8"/>
|
||||
</subsystem>
|
||||
|
||||
<subsystem name="telemetry" type="transparent"/>
|
||||
|
||||
@@ -27,7 +27,11 @@
|
||||
#define ACTUATORS_PWM_ARCH_H
|
||||
|
||||
#if USE_SERVOS_7AND8
|
||||
#if defined(BOARD_LISA_M) && USE_I2C1
|
||||
#error "You cannot use Servos 7and8 and I2C1 at the same time"
|
||||
#else
|
||||
#define ACTUATORS_PWM_NB 8
|
||||
#endif
|
||||
#else
|
||||
#define ACTUATORS_PWM_NB 6
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user