Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Implement time, altitude functions and GLL latitude function #1

Open
kknives opened this issue Aug 28, 2023 · 0 comments
Open

Implement time, altitude functions and GLL latitude function #1

kknives opened this issue Aug 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kknives
Copy link
Collaborator

kknives commented Aug 28, 2023

As of now, the functions to return time and altitude are unimplemented and just return an error code when called:

gps_error_code_t gps_get_time(gps_t gps_instance, struct tm* time) {
return GPS_UNIMPLEMENTED;
}
gps_error_code_t gps_get_altitude(gps_t gps_instance, float* msl_metres) {
return GPS_UNIMPLEMENTED;
}

Also, the gll_get_lat_lon implementation is just a stub:

gps_error_code_t gll_get_lat_lon(int* degmin, int* minfrac) {
return GPS_UNIMPLEMENTED;
}

  1. Implement gps_get_time and gps_get_altitude for both GLL and GGA sentences using gps_get_lat_lon's implementation as a reference.
  2. Implement gll_get_lat_lon

Also write tests against the implementation and place then in the tests directory.

@kknives kknives changed the title Implement time and altitude functions Implement time, altitude functions and GLL latitude function Aug 28, 2023
@kknives kknives added the enhancement New feature or request label Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant