#include <stdio.h>
#include <math.h>
#include "communication/communication.h"
#include "main.h"
#include "taskScheduler.h"
#include "ui.h"
#include "datalogger.h"
#include "calibration/calibration.h"
Go to the source code of this file.
Macros | |
#define | TASK_UI_PERIOD 200000 |
#define | TASK_CONTROL_PERIOD 20000 |
Functions | |
int | main (void) |
static void | main_task (int signo) |
static void | ui_hook (int signo) |
static void | control_hook (int signo) |
static void | ui_task () |
static void | control_task () |
int | reset_timer (void) |
int | get_time (double *time_control_task_s, double *Ts_control_task_s, double *mean_time_control_task_s, double *t0_control_task_s) |
Review of this function: More... | |
void | exit_program (void) |
Internal function to end program. More... | |
Variables | |
TASK_S | task1 |
Main rotine for control: More... | |
TASK_S | task_ui |
TASK_S | task_control |
IMU_PARAM_STRUCT | imu_param |
SPI_PARAM_STRUCT | spi_param |
EFF_DATA_STRUCT | eff_data |
IMU_DATA_STRUCT | imu_data |
ENC_DATA_STRUCT | enc_data |
MRA_DATA_STRUCT | mra_data |
int | total = 0 |
int | failure = 0 |
int | acquire = 0 |
int | quittask = 0 |
int | t0 = 0 |
|
static |
Definition at line 113 of file main.c.
References timer_function_task().
Referenced by main().
|
static |
Definition at line 127 of file main.c.
References actuate(), calibrate_all(), DATALOGGER_NOT_RUNNING, DATALOGGER_RUNNING, datalogger_set_Ts(), datalogger_status(), datalogger_update(), failure, IMU_PARAM_STRUCT::i2c_dev, TASK_S::period_us, read_all_data(), reset_timer(), SPI_PARAM_STRUCT::spi_dev, SUCCESS, t0, TASK_S::T_exec_global, TASK_S::t_global, total, and MRA_DATA_STRUCT::v_ctl.
Referenced by main(), and main_task().
void exit_program | ( | void | ) |
int get_time | ( | double * | time_control_task_s, |
double * | Ts_control_task_s, | ||
double * | mean_time_control_task_s, | ||
double * | t0_control_task_s | ||
) |
Review of this function:
Definition at line 167 of file main.c.
Referenced by ui_overview_data().
int main | ( | void | ) |
Definition at line 42 of file main.c.
|
static |
Definition at line 103 of file main.c.
References control_task(), and ui_task().
int reset_timer | ( | void | ) |
Definition at line 160 of file main.c.
Referenced by control_task().
|
static |
Definition at line 108 of file main.c.
References timer_function_task().
Referenced by main().
|
static |
Definition at line 118 of file main.c.
References failure, IMU_PARAM_STRUCT::i2c_dev, read_all_data(), SPI_PARAM_STRUCT::spi_dev, SUCCESS, total, and ui_update().
Referenced by main(), and main_task().
EFF_DATA_STRUCT eff_data |
ENC_DATA_STRUCT enc_data |
int failure = 0 |
Definition at line 36 of file main.c.
Referenced by control_task(), and ui_task().
IMU_DATA_STRUCT imu_data |
IMU_PARAM_STRUCT imu_param |
MRA_DATA_STRUCT mra_data |
int quittask = 0 |
Definition at line 39 of file main.c.
Referenced by exit_program(), and main().
SPI_PARAM_STRUCT spi_param |
int t0 = 0 |
Definition at line 40 of file main.c.
Referenced by control_task(), get_time(), reset_timer(), and ui_overview_data().
int total = 0 |
Definition at line 35 of file main.c.
Referenced by control_task(), and ui_task().