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.

26 lignes
575 B

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