mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Update gpio/ledring drivers so they do not include "board.h". It is now
clear what all gpio/ledring drivers need to compile and what was unnecessarily included before. In attempting this it was clear that ledring had a dependency on the multiwii code, this was removed by passing the led status update method the values it needs. It also turned out that the ROLL/PITCH defines were coming from rc_alias_e and much unrelated code is coupled to these defines. This commit also includes some cleanups relating to that problem.
This commit is contained in:
parent
b6232573c0
commit
38ec0b6080
19 changed files with 132 additions and 50 deletions
3
src/mw.c
3
src/mw.c
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "serial_cli.h"
|
||||
#include "telemetry_common.h"
|
||||
#include "flight_common.h"
|
||||
#include "typeconversion.h"
|
||||
#include "maths.h"
|
||||
|
||||
|
@ -185,7 +186,7 @@ void annexCode(void)
|
|||
static uint32_t LEDTime;
|
||||
if ((int32_t)(currentTime - LEDTime) >= 0) {
|
||||
LEDTime = currentTime + 50000;
|
||||
ledringState();
|
||||
ledringState(f.ARMED, angle[AI_PITCH], angle[AI_ROLL]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue