Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

25 lignes
523 B

  1. #pragma once
  2. #include <SIM808.h>
  3. #include "Hardware.h"
  4. #include "Time2.h"
  5. #define GPS_POSITION_SIZE 128
  6. namespace gps {
  7. extern char lastPosition[GPS_POSITION_SIZE];
  8. extern SIM808_GPS_STATUS lastStatus;
  9. inline void powerOn() { hardware::sim808::gpsPowerOn(); }
  10. inline void powerOff() { hardware::sim808::gpsPowerOff(); }
  11. SIM808_GPS_STATUS acquireCurrentPosition(int32_t timeout);
  12. uint8_t getVelocity();
  13. float getDistanceFromPrevious();
  14. void getTime(tmElements_t &time);
  15. void preserveCurrentCoordinates();
  16. }