CTS-SAT-1-OBC-Firmware
|
#include "telecommand_exec/telecommand_args_helpers.h"
#include "telecommands/camera_telecommand_defs.h"
#include "config/configuration.h"
#include "camera/camera_init.h"
#include "camera/camera_capture.h"
#include "log/log.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Functions | |
uint8_t | TCMDEXEC_camera_setup (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Set up the camera by powering on and changing the baudrate to 230400. | |
uint8_t | TCMDEXEC_camera_test (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Send the 't' test command to the camera, and check if the response is valid. | |
uint8_t | TCMDEXEC_camera_change_baud_rate (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Debugging only. Set the baud rate of the camera to the specified value. Use camera_setup normally. | |
uint8_t | TCMDEXEC_camera_capture (const char *args_str, char *response_output_buf, uint16_t response_output_buf_len) |
Send telecommand to camera and capture an image. RUN CAM_SETUP BEFORE THIS EVERY TIME! | |
uint8_t TCMDEXEC_camera_capture | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
Send telecommand to camera and capture an image. RUN CAM_SETUP BEFORE THIS EVERY TIME!
args_str |
|
response_output_buf | Buffer to write the response to |
response_output_buf_len | Max length of the buffer |
uint8_t TCMDEXEC_camera_change_baud_rate | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
Debugging only. Set the baud rate of the camera to the specified value. Use camera_setup
normally.
args_str |
|
uint8_t TCMDEXEC_camera_setup | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
Set up the camera by powering on and changing the baudrate to 230400.
args_str | |
response_output_buf | Buffer to write the response to |
response_output_buf_len | Max length of the buffer |
uint8_t TCMDEXEC_camera_test | ( | const char * | args_str, |
char * | response_output_buf, | ||
uint16_t | response_output_buf_len ) |
Send the 't' test command to the camera, and check if the response is valid.
args_str | |
response_output_buf | Buffer to write the response to |
response_output_buf_len | Max length of the buffer |