CTS-SAT-1-OBC-Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
firmware
Core
Inc
gnss_receiver
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
7
uint64_t
GNSS_parse_timea_response_and_convert_to_unix_time_ms
(
char
* input_str, uint64_t* unix_time_ms);
8
9
uint8_t
GNSS_set_obc_time_based_on_gnss_time_uart
();
10
11
uint8_t
GNSS_set_obc_time_based_on_gnss_pps
();
12
13
#endif
// INCLUDE_GUARD__GNSS_TIME_H__
14
15
GNSS_set_obc_time_based_on_gnss_time_uart
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
GNSS_parse_timea_response_and_convert_to_unix_time_ms
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
GNSS_set_obc_time_based_on_gnss_pps
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:154
Generated by
1.17.0