gpx.h 488 B

1234567891011121314151617
  1. #pragma once
  2. #include "ff.h"
  3. extern FIL gpx_file;
  4. unsigned char gpx_init(FIL *file);
  5. unsigned char gpx_write(struct location_s *loc, FIL *file);
  6. unsigned char gpx_close(FIL *file);
  7. void gpx_process_point(struct location_s *loc, FIL *file);
  8. void gpx_reset_gap(void);
  9. void gpx_save_single_point(struct location_s *loc);
  10. float distance(struct location_s *pos1, struct location_s *pos2);
  11. void add_distance(float dist);
  12. void add_elevation(float ele_change);
  13. unsigned char is_paused(void);