AP_InertialSensor: L3G4200D: sanitize includes

This commit is contained in:
Lucas De Marchi 2016-01-19 02:27:29 -02:00
parent 5088dca072
commit 637b53f4ce
2 changed files with 6 additions and 30 deletions

View File

@ -27,34 +27,12 @@ Datasheets:
ADXL345 Accelerometer http://www.analog.com/static/imported-files/data_sheets/ADXL345.pdf ADXL345 Accelerometer http://www.analog.com/static/imported-files/data_sheets/ADXL345.pdf
L3G4200D gyro http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00265057.pdf L3G4200D gyro http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00265057.pdf
*/ */
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <AP_Math/AP_Math.h> #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "AP_InertialSensor_L3G4200D.h" #include "AP_InertialSensor_L3G4200D.h"
#include <stdio.h>
#include <unistd.h> #include <inttypes.h>
#include <errno.h>
#include <sys/time.h>
#include <sched.h>
#include <linux/rtc.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <sched.h>
#include <linux/rtc.h>
#include <pthread.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
const extern AP_HAL::HAL& hal; const extern AP_HAL::HAL& hal;

View File

@ -1,17 +1,16 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#pragma once
#ifndef __AP_INERTIAL_SENSOR_L3G4200D_H__
#define __AP_INERTIAL_SENSOR_L3G4200D_H__
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include <pthread.h> #include <pthread.h>
#include "AP_InertialSensor.h"
#include <Filter/Filter.h> #include <Filter/Filter.h>
#include <Filter/LowPassFilter2p.h> #include <Filter/LowPassFilter2p.h>
#include "AP_InertialSensor.h"
class AP_InertialSensor_L3G4200D : public AP_InertialSensor_Backend class AP_InertialSensor_L3G4200D : public AP_InertialSensor_Backend
{ {
public: public:
@ -37,4 +36,3 @@ private:
uint8_t _accel_instance; uint8_t _accel_instance;
}; };
#endif #endif
#endif // __AP_INERTIAL_SENSOR_L3G4200D_H__