CTS-SAT-1-OBC-Firmware
|
#include "debug_tools/debug_uart.h"
#include "camera/camera_init.h"
#include "camera/camera_capture.h"
#include "uart_handler/uart_handler.h"
#include "uart_handler/uart_control.h"
#include "log/log.h"
#include "eps_drivers/eps_channel_control.h"
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "main.h"
Functions | |
uint8_t | CAM_change_baudrate (uint32_t new_baud_rate) |
Changes the baudrate of the camera by sending it a UART command, and then changing the baudrate of the camera UART port. | |
static void | camera_clean_up () |
uint8_t | CAM_setup () |
Set up the camera by powering on and changing the baudrate to 230400. | |
uint8_t | CAM_test () |
Send the 't' test command to the camera, and check if the response is valid. | |
uint8_t CAM_change_baudrate | ( | uint32_t | new_baud_rate | ) |
Changes the baudrate of the camera by sending it a UART command, and then changing the baudrate of the camera UART port.
new_baud_rate | The new baud rate to set the camera to. Ranges from 1200 to 921600. |
uint8_t CAM_setup | ( | ) |
Set up the camera by powering on and changing the baudrate to 230400.
CAM_change_baudrate
function, or >100 if an EPS error occurred. uint8_t CAM_test | ( | ) |
Send the 't' test command to the camera, and check if the response is valid.
CAM_setup
before calling this function.
|
static |