Remove sensor_sonar.c's dependency on mw.h/board.h.
This commit is contained in:
parent
53b7edd843
commit
1464b7398a
|
@ -44,7 +44,6 @@ float accVelScale;
|
|||
|
||||
int16_t smallAngle = 0;
|
||||
|
||||
int32_t sonarAlt; // to think about the unit
|
||||
int32_t EstAlt; // in cm
|
||||
int32_t AltHold;
|
||||
int32_t errorAltitudeI = 0;
|
||||
|
|
|
@ -1,5 +1,15 @@
|
|||
#include "board.h"
|
||||
#include "mw.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#include "drivers/sonar_hcsr04.h"
|
||||
#include "runtime_config.h"
|
||||
|
||||
#include "sensors_common.h"
|
||||
#include "sensors_sonar.h"
|
||||
|
||||
int32_t sonarAlt; // to think about the unit
|
||||
|
||||
#ifdef SONAR
|
||||
|
||||
|
|
Loading…
Reference in New Issue