autopause.h 499 B

12345678910111213141516
  1. #pragma once
  2. struct auto_pause_s {
  3. unsigned char point_counter;
  4. unsigned long int prev_distance;
  5. unsigned char speed_counter;
  6. struct location_s pause_anchor; /* running average position while paused */
  7. unsigned int anchor_sample_count;
  8. unsigned char resume_high_history; /* bit history: was the anchor-distance/speed resume condition met */
  9. };
  10. extern struct auto_pause_s auto_pause;
  11. void auto_pause_process(void);
  12. void auto_pause_reset_gap(void);
  13. void auto_pause_clear_manual_resume(void);