Update subghz GPS dir finder & thread logic

also a few other finishing touches
This commit is contained in:
Sil333033
2023-10-08 21:20:42 +02:00
parent f7f3780aef
commit 88b98fb175
7 changed files with 99 additions and 64 deletions

View File

@@ -30,10 +30,37 @@ typedef struct {
uint8_t fix_hour;
} SubGhzGPS;
/**
* Initialize SubGhzGPS object
*
* @return SubGhzGPS* SubGhzGPS object
*/
SubGhzGPS* subghz_gps_init();
/**
* Deinitialize SubGhzGPS object
*
* @param subghz_gps SubGhzGPS object
* @return void
*/
void subghz_gps_deinit(SubGhzGPS* subghz_gps);
/**
* Start GPS thread
*
* @param subghz_gps SubGhzGPS object
* @return void
*/
void subghz_gps_start(SubGhzGPS* subghz_gps);
/**
* Stop GPS thread
*
* @param subghz_gps SubGhzGPS object
* @return void
*/
void subghz_gps_stop(SubGhzGPS* subghz_gps);
/**
* Convert degree to radian
*