CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
gnss_time.h
Go to the documentation of this file.
1#ifndef INCLUDE_GUARD__GNSS_TIME_H__
2#define INCLUDE_GUARD__GNSS_TIME_H__
3
4#include <stdint.h>
5#include <time.h>
6
7uint64_t GNSS_parse_timea_response_and_convert_to_unix_time_ms(char* input_str, uint64_t* unix_time_ms);
8
10
12
13#endif // INCLUDE_GUARD__GNSS_TIME_H__
14
15
uint8_t GNSS_set_obc_time_based_on_gnss_time_uart()
Sets the OBC's time, based on the GNSS receiver's current time.
Definition gnss_time.c:84
uint64_t GNSS_parse_timea_response_and_convert_to_unix_time_ms(char *input_str, uint64_t *unix_time_ms)
Parses a GNSS receiver TIMEA message and converts it into Unix epoch time in milliseconds.
Definition gnss_time.c:20
uint8_t GNSS_set_obc_time_based_on_gnss_pps()
Modify the already-synced OBC time to move the time by up to 499ms to align with the GNSS PPS.
Definition gnss_time.c:152