CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
timekeeping_telecommand_defs.h File Reference
#include <stdint.h>
#include "telecommand_exec/telecommand_definitions.h"
Include dependency graph for timekeeping_telecommand_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t TCMDEXEC_get_system_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 
uint8_t TCMDEXEC_set_system_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Set the system time to the provided Unix epoch time in milliseconds.
 
uint8_t TCMDEXEC_correct_system_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Adjust the system time with a signed int.
 
uint8_t TCMDEXEC_set_eps_time_based_on_obc_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Sync's eps time to obc time (+/- 1 second)
 
uint8_t TCMDEXEC_set_obc_time_based_on_eps_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Sync's obc time to eps time (+/- 1 second)
 
uint8_t TCMDEXEC_set_obc_time_based_on_gnss_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Sync's OBC time to gnss time (+/- ~100ms)
 

Function Documentation

◆ TCMDEXEC_correct_system_time()

uint8_t TCMDEXEC_correct_system_time ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Adjust the system time with a signed int.

Parameters
args_str
  • Arg 0: Correction time in milliseconds (int64_t). Positive = forward in time, negative = backward in time.
Returns
0 if successful, 1 if error
Here is the call graph for this function:

◆ TCMDEXEC_get_system_time()

uint8_t TCMDEXEC_get_system_time ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )
Here is the call graph for this function:

◆ TCMDEXEC_set_eps_time_based_on_obc_time()

uint8_t TCMDEXEC_set_eps_time_based_on_obc_time ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Sync's eps time to obc time (+/- 1 second)

Returns
0 on success, >0 on failure.
Here is the call graph for this function:

◆ TCMDEXEC_set_obc_time_based_on_eps_time()

uint8_t TCMDEXEC_set_obc_time_based_on_eps_time ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Sync's obc time to eps time (+/- 1 second)

Returns
0 on success, >0 on failure.
Here is the call graph for this function:

◆ TCMDEXEC_set_obc_time_based_on_gnss_time()

uint8_t TCMDEXEC_set_obc_time_based_on_gnss_time ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Sync's OBC time to gnss time (+/- ~100ms)

Returns
0 on success, >0 on failure.
Here is the call graph for this function:

◆ TCMDEXEC_set_system_time()

uint8_t TCMDEXEC_set_system_time ( const char * args_str,
char * response_output_buf,
uint16_t response_output_buf_len )

Set the system time to the provided Unix epoch time in milliseconds.

Parameters
args_str
  • Arg 0: Unix epoch time in milliseconds (uint64_t)
Returns
0 if successful, 1 if error
Here is the call graph for this function: