Loading...
Searching...
No Matches
launch.c
1/***********************************************************************************
2 * @file launch.c *
3 * @author Matt Ricci *
4 * @addtogroup Shell *
5 * *
6 * @{ *
7 ***********************************************************************************/
8
9#include "devicelist.h"
10#include "shell.h"
11#include "params.h"
12#include "sensors.h"
13
14#include "kx134_1211.h"
15
16static void Launch_exec(Shell *, uint8_t *);
17
18DEFINE_PROGRAM_HANDLE("launch", Launch_exec)
19
20/* =============================================================================== */
27static void Launch_exec(Shell *shell, uint8_t *flags) {
28 DeviceHandle_t accelHandle = DeviceList_getDeviceHandle(DEVICE_ACCEL);
29 KX134_1211_t *accel = accelHandle.device;
30 accel->accelData[ZINDEX] = ACCEL_LAUNCH;
31 TaskHandle_t handle = xTaskGetHandle("StateUpdate");
32 xTaskAbortDelay(handle);
33}
34
DeviceHandle_t DeviceList_getDeviceHandle(DeviceKey)
Retrieve device handle from list by key.
Definition devicelist.c:36
Struct definition for shell interface.
Definition shell.h:48
float accelData[KX134_1211_DATA_COUNT]
Processed accelerations array.
Definition kx134_1211.h:61