CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
obc_systems_telecommand_defs.h File Reference
Include dependency graph for obc_systems_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_obc_read_temperature_complex (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Reads the temperature from the STDS75DS2F and stores it in the provided variable temperature. Temperature range is -55 to 125 degrees celsius with +/- 3 degrees celsius accuracy over the whole range.
 
uint8_t TCMDEXEC_obc_read_temperature (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Reads the temperature from the STDS75DS2F in centi-Celsius.
 
uint8_t TCMDEXEC_obc_adc_read_vbat_voltage (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Read the battery voltage using the ADC. Returns the result in mV. Voltage divider ratio is already applied.
 

Function Documentation

◆ TCMDEXEC_obc_adc_read_vbat_voltage()

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

Read the battery voltage using the ADC. Returns the result in mV. Voltage divider ratio is already applied.

Parameters
args_strNo arguments.
Returns
Here is the call graph for this function:

◆ TCMDEXEC_obc_read_temperature()

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

Reads the temperature from the STDS75DS2F in centi-Celsius.

Returns
0 if successful, >0 if error.
Note
Temperature range is -55 to 125 degrees celsius with +/- 3 degrees celsius accuracy over the whole range.
Here is the call graph for this function:

◆ TCMDEXEC_obc_read_temperature_complex()

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

Reads the temperature from the STDS75DS2F and stores it in the provided variable temperature. Temperature range is -55 to 125 degrees celsius with +/- 3 degrees celsius accuracy over the whole range.

Parameters
args_str
  • Arg 0: Precision we want the temperature to be (9-12 bits).
Returns
0 if successful, 1 if error.
Note
There are better ways to get the temperature.
Here is the call graph for this function: