Go to the source code of this file.
Macros | |
#define | SUCCESS 1 |
#define | FAILURE -1 |
Functions | |
int | main (void) |
int | periodic_task_1 (void) |
int | periodic_task_2 (void) |
void | timer_start_task_1 (void) |
void | timer_start_task_2 (void) |
void | timer_stop_task_1 (void) |
void | timer_stop_task_2 (void) |
void | timer_function_task_1 (void) |
void | timer_function_task_2 (void) |
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... | |
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.
References TASK_S::period_us, SUCCESS, t0, TASK_S::t_global, TASK_S::T_mean_global, t_task_1_global, T_task_1_mean_global, and task_1_period_us.
Referenced by ui_overview_data().
int main | ( | void | ) |
Definition at line 42 of file main.c.
References IMU_PARAM_STRUCT::acc, IMU_PARAM_STRUCT::param_gyr::act, IMU_PARAM_STRUCT::param_gyr::clk_source, control_hook(), control_task(), SPI_PARAM_STRUCT::cs, datalogger_close(), datalogger_init(), DATALOGGER_RUNNING, datalogger_status(), datalogger_stop(), DATALOGGER_SUCCESS, datalogger_write_file(), devices_close(), devices_init(), FAILURE, IMU_PARAM_STRUCT::param_acc::full_res, IMU_PARAM_STRUCT::gyr, IMU_PARAM_STRUCT::param_gyr::lpf_bw, IMU_PARAM_STRUCT::mag, IMU_PARAM_STRUCT::param_mag::meas_mode, SPI_PARAM_STRUCT::mode, IMU_PARAM_STRUCT::param_mag::op_mode, quittask, IMU_PARAM_STRUCT::param_acc::range, IMU_PARAM_STRUCT::param_mag::range, IMU_PARAM_STRUCT::param_acc::rate, IMU_PARAM_STRUCT::param_gyr::rate, IMU_PARAM_STRUCT::param_mag::rate, IMU_PARAM_STRUCT::param_mag::samples_avg, SPI_PARAM_STRUCT::speed, status, SUCCESS, TASK1_PERIOD_US, TASK2_PERIOD_US, task_1_period_us, TASK_CONTROL_PERIOD, TASK_UI_PERIOD, timer_new_task(), timer_start_task(), timer_start_task_1(), timer_start_task_2(), timer_stop_task(), timer_stop_task_1(), timer_stop_task_2(), ui_close(), ui_hook(), ui_init(), and ui_task().
int periodic_task_1 | ( | void | ) |
Definition at line 190 of file main2.c.
References actuate(), calibrate_all(), DATALOGGER_NOT_RUNNING, DATALOGGER_RUNNING, datalogger_set_Ts(), datalogger_status(), datalogger_update(), failure, IMU_PARAM_STRUCT::i2c_dev, read_all_data(), reset_timer(), SPI_PARAM_STRUCT::spi_dev, SUCCESS, t0, T_task_1_exec_global, t_task_1_global, T_task_2_exec_global, task_1_period_us, total, and MRA_DATA_STRUCT::v_ctl.
Referenced by timer_function_task_1().
int periodic_task_2 | ( | void | ) |
Definition at line 277 of file main2.c.
References IMU_DATA_STRUCT::acc, buff, buff_i, devices_init(), failure, IMU_DATA_STRUCT::gyr, IMU_PARAM_STRUCT::i2c_dev, IMU_DATA_STRUCT::mag, SPI_PARAM_STRUCT::spi_dev, SUCCESS, telemetry_mode, total, UI_NCURSES_MODE, ui_update(), DATA_XYZ::x, DATA_XYZ::y, and DATA_XYZ::z.
Referenced by timer_function_task_2().
int reset_timer | ( | void | ) |
Definition at line 160 of file main.c.
References SUCCESS, t0, TASK_S::t_global, and t_task_1_global.
Referenced by control_task(), and periodic_task_1().
void timer_function_task_1 | ( | void | ) |
Definition at line 426 of file main2.c.
References flag_task_1_firstexecution, periodic_task_1(), status, t0, T_task_1_exec_global, t_task_1_global, T_task_1_max_global, T_task_1_mean_global, and T_task_1_min_global.
Referenced by f_timer_task_1().
void timer_function_task_2 | ( | void | ) |
Definition at line 483 of file main2.c.
References flag_task_2_firstexecution, periodic_task_2(), status, T_task_2_exec_global, t_task_2_global, T_task_2_max_global, T_task_2_mean_global, and T_task_2_min_global.
Referenced by f_timer_task_2().
void timer_start_task_1 | ( | void | ) |
Definition at line 342 of file main2.c.
References f_timer_task_1(), flag_task_1_firstexecution, task_1_period_us, and timer_task_1.
Referenced by main().
void timer_start_task_2 | ( | void | ) |
Definition at line 375 of file main2.c.
References f_timer_task_2(), flag_task_2_firstexecution, task_2_period_us, and timer_task_2.
Referenced by main().
void timer_stop_task_1 | ( | void | ) |
Definition at line 406 of file main2.c.
References timer_task_1.
Referenced by main().
void timer_stop_task_2 | ( | void | ) |
Definition at line 416 of file main2.c.
References timer_task_2.
Referenced by main().