CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
antenna_telecommand_defs.c File Reference
#include "main.h"
#include "telecommands/antenna_telecommand_defs.h"
#include "antenna_deploy_drivers/ant_internal_drivers.h"
#include "antenna_deploy_drivers/ant_commands.h"
#include "telecommand_exec/telecommand_args_helpers.h"
#include "log/log.h"
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "inttypes.h"
Include dependency graph for antenna_telecommand_defs.c:

Functions

uint8_t TCMDEXEC_ant_reset (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Resets the specified antenna deployment system's microcontroller.
 
uint8_t TCMDEXEC_ant_arm_antenna_system (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Telecommand: Arm the antenna deploy system.
 
uint8_t TCMDEXEC_ant_disarm_antenna_system (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Disarms the specified antenna deploy system's mcu.
 
uint8_t TCMDEXEC_ant_deploy_antenna (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Telecommand: Initiates deployment of the selected antenna.
 
uint8_t TCMDEXEC_ant_start_automated_antenna_deployment (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 begins deployment of all antennas, one by one.
 
uint8_t TCMDEXEC_ant_deploy_antenna_with_override (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Telecommand: Initiates deployment of the selected antenna, ignoring whether the antennas current status is deployed.
 
uint8_t TCMDEXEC_ant_cancel_deployment_system_activation (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Cancels any active attempts to deploy an antenna.
 
uint8_t TCMDEXEC_ant_report_deployment_status (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Prints the deployment status of all antennas.
 
uint8_t TCMDEXEC_ant_report_antenna_deployment_activation_count (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Prints the number of times deployment was attempted on the selected antenna.
 
uint8_t TCMDEXEC_ant_report_antenna_deployment_activation_time (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Prints amount of time the deployment system has been active for for the selected antenna.
 
uint8_t TCMDEXEC_ant_measure_temp (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len)
 Telecommand: Measures the temperature of the antenna controller in centi-degrees celsius.
 

Function Documentation

◆ TCMDEXEC_ant_arm_antenna_system()

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

Telecommand: Arm the antenna deploy system.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
Returns
0 on success, >0 on error
Here is the call graph for this function:

◆ TCMDEXEC_ant_cancel_deployment_system_activation()

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

Cancels any active attempts to deploy an antenna.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
Returns
0 on successful communication, > 0 on communications error
Here is the call graph for this function:

◆ TCMDEXEC_ant_deploy_antenna()

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

Telecommand: Initiates deployment of the selected antenna.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Either "A" or "B"
  • Arg 1: antenna number. between 1-4
  • Arg 2: Activation time in seconds
Returns
0 on success, >0 on error
Here is the call graph for this function:

◆ TCMDEXEC_ant_deploy_antenna_with_override()

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

Telecommand: Initiates deployment of the selected antenna, ignoring whether the antennas current status is deployed.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
  • Arg 1: antenna number. between 1-4
  • Arg 2: Activation time in seconds
Returns
0 on successful communication, >0 on communications error
Here is the call graph for this function:

◆ TCMDEXEC_ant_disarm_antenna_system()

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

Disarms the specified antenna deploy system's mcu.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to disarm, and which i2c bus to use
Returns
0 on success, 0 > otherwise
Here is the call graph for this function:

◆ TCMDEXEC_ant_measure_temp()

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

Telecommand: Measures the temperature of the antenna controller in centi-degrees celsius.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
Returns
0 on success, >0 on error
Here is the call graph for this function:

◆ TCMDEXEC_ant_report_antenna_deployment_activation_count()

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

Prints the number of times deployment was attempted on the selected antenna.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
  • Arg 1: the antenna to check, between 1-4
Returns
0 on successful communication, > 0 on communications error
Here is the call graph for this function:

◆ TCMDEXEC_ant_report_antenna_deployment_activation_time()

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

Prints amount of time the deployment system has been active for for the selected antenna.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
  • Arg 1: the antenna to check, between 1-4
Returns
0 on successful communication, > 0 on communications error
Here is the call graph for this function:

◆ TCMDEXEC_ant_report_deployment_status()

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

Prints the deployment status of all antennas.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
Returns
0 on successful communication, > 0 on communications error
Here is the call graph for this function:

◆ TCMDEXEC_ant_reset()

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

Resets the specified antenna deployment system's microcontroller.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
Returns
0 on success, > 0 otherwise
Here is the call graph for this function:

◆ TCMDEXEC_ant_start_automated_antenna_deployment()

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

begins deployment of all antennas, one by one.

Parameters
args_str
  • Arg 0: specifies which mcu on the antenna deployment system to transmit to, and which i2c bus to use. Pass either "A" or "B"
  • Arg 1: Activation time in seconds
Returns
returns 0 on success, > 0 otherwise
Here is the call graph for this function: