bexus_sensors.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef bexus_sensors_h
  2. #define bexus_sensors_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /**----------------Includes-----------------------------*/
  7. //#include "FreeRTOS.h"
  8. #include "i2c.h"
  9. #include "bexus_variables.h"
  10. #include "bexus_i2c_cis.h"
  11. #include "bexus_adc.h"
  12. #include "bexus_gps.h"
  13. #include "bexus_mpu.h"
  14. #include "bexus_mag.h"
  15. #include "bexus_sd.h"
  16. #include "bexus_sysclock.h"
  17. #include "bexus_pressure_spi.h"
  18. #include "bexus_temperature_i2c.h"
  19. #include "bexus_udp_client.h"
  20. /**-----------------------------------------------------*/
  21. /**----------------variables---------------------------*/
  22. extern uint16_t samplerate_mpu_mag;
  23. extern uint16_t samplerate_temp_press_gps;
  24. extern uint32_t counter;
  25. extern uint32_t last_time_mpu_mag_read;
  26. extern uint32_t last_time_temp_press_gps_read;
  27. extern uint8_t mpu_mag_read;
  28. extern uint8_t temp_press_gps_read;
  29. extern uint8_t error_read;
  30. //extern bool new_Sensor_Data;
  31. extern uint16_t last_index_temp_press_gps;
  32. /**-----------------------------------------------------*/
  33. /**------------------functions--------------------------*/
  34. int Sensors(void);
  35. void Sensors_Init(void);
  36. void calc_imu(void);
  37. int Fusion(void);
  38. /**-----------------------------------------------------*/
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif