Skip to content

Commit

Permalink
fixed is_in_dominica
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrewal26 committed Jul 5, 2023
1 parent 4c8d8b7 commit f1529db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions TagV3.0_U575VGT/Core/Inc/Recovery Inc/GPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#define DEFAULT_LAT 15.31383
#define DEFAULT_LON -61.30075

#define DOMINICA_LAT_BOUNDARY 17.71468

typedef enum __GPS_MESSAGE_TYPES {
GPS_SIM = 0,
GPS_GLL = 1,
Expand Down
3 changes: 1 addition & 2 deletions TagV3.0_U575VGT/Core/Src/Recovery Src/GPS.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ bool get_gps_lock(GPS_HandleTypeDef* gps, GPS_Data* gps_data){
return false;
}

//TODO: implement properly
bool is_in_dominica(float latitude, float longitude){
return false;
return (latitude < DOMINICA_LAT_BOUNDARY);
}

0 comments on commit f1529db

Please sign in to comment.