Remove sensor_sonar.c's dependency on mw.h/board.h.

This commit is contained in:
Dominic Clifton 2014-04-23 00:05:11 +01:00
parent 53b7edd843
commit 1464b7398a
2 changed files with 12 additions and 3 deletions

View File

@ -44,7 +44,6 @@ float accVelScale;
int16_t smallAngle = 0; int16_t smallAngle = 0;
int32_t sonarAlt; // to think about the unit
int32_t EstAlt; // in cm int32_t EstAlt; // in cm
int32_t AltHold; int32_t AltHold;
int32_t errorAltitudeI = 0; int32_t errorAltitudeI = 0;

View File

@ -1,5 +1,15 @@
#include "board.h" #include <stdbool.h>
#include "mw.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 #ifdef SONAR