Loading...
Searching...
No Matches
debug_launch.c
1/***********************************************************************************
2 * @file launch.c *
3 * @author Matt Ricci *
4 * @addtogroup Shell *
5 * *
6 * @{ *
7 ***********************************************************************************/
8
9#include "AustralisConfig.h"
10
11#include "devicelist.h"
12#include "shell.h"
13#include "sensors.h"
14
15#include "accelerometer.h"
16
17static void Launch_exec(UART_t *uart, char *);
18
19DEFINE_PROGRAM_HANDLE("launch", Launch_exec, NULL)
20
21/* =============================================================================== */
26static void Launch_exec(UART_t *uart, char *flags) {
27 Accel_t *accel = DeviceList_getDeviceHandle(DEVICE_ACCEL).device;
28 accel->accelData[ZINDEX] = ACCEL_LAUNCH;
29 TaskHandle_t handle = xTaskGetHandle("StateUpdate");
30 xTaskAbortDelay(handle);
31}
32
Defines the API for the Accelerometer sensor.
float * accelData
Pointer to driver defined data array.
DeviceHandle_t DeviceList_getDeviceHandle(DeviceKey)
Retrieve device handle from list by key.
Definition devicelist.c:36
Struct definition for UART interface.
Definition uart.h:132