#include <ncurses.h>
#include <math.h>
#include <string.h>
#include "communication/communication.h"
#include "datalogger.h"
#include "main2.h"
#include "ui.h"
Go to the source code of this file.
Functions | |
void | exit_program (void) |
Internal function to end program. More... | |
int | ui_init (void) |
Initialize UI. More... | |
int | ui_close (void) |
Close UI. More... | |
int | ui_update (IMU_DATA_STRUCT *pimu_data, EFF_DATA_STRUCT *peff_data, MRA_DATA_STRUCT *pmra_data, ENC_DATA_STRUCT *enc_data, int total, int failure) |
Update Screen with new data of sensors. More... | |
int | ui_imu_data (IMU_DATA_STRUCT *pimu_data) |
Print IMU data. More... | |
int | ui_eff_data (EFF_DATA_STRUCT *peff_data) |
int | ui_enc_data (ENC_DATA_STRUCT *enc_data) |
Print ENCODER data. More... | |
int | ui_mra_data (MRA_DATA_STRUCT *pmra_data) |
Print MRA data. More... | |
int | ui_overview_data (int total, int failures, IMU_DATA_STRUCT *pimu_data, EFF_DATA_STRUCT *peff_data, MRA_DATA_STRUCT *pmra_data, ENC_DATA_STRUCT *enc_data) |
Print ALL sensors data. More... | |
int | ui_menu () |
Print the menu. More... | |
Variables | |
unsigned int | telemetry_mode |
void exit_program | ( | void | ) |
int ui_eff_data | ( | EFF_DATA_STRUCT * | peff_data | ) |
Definition at line 163 of file ui.c.
References EFF_DATA_STRUCT::F, EFF_DATA_STRUCT::M, SUCCESS, DATA_XYZ::x, DATA_XYZ::y, and DATA_XYZ::z.
Referenced by ui_update().
int ui_enc_data | ( | ENC_DATA_STRUCT * | enc_data | ) |
Print ENCODER data.
Definition at line 181 of file ui.c.
References ENC_DATA_STRUCT::calib, ENC_DATA_STRUCT::position, ENC_DATA_STRUCT::calibrate::position, and SUCCESS.
Referenced by ui_update().
int ui_menu | ( | ) |
Print the menu.
Definition at line 264 of file ui.c.
References SUCCESS.
Referenced by ui_update().
int ui_overview_data | ( | int | total, |
int | failures, | ||
IMU_DATA_STRUCT * | pimu_data, | ||
EFF_DATA_STRUCT * | peff_data, | ||
MRA_DATA_STRUCT * | pmra_data, | ||
ENC_DATA_STRUCT * | enc_data | ||
) |
Print ALL sensors data.
Definition at line 197 of file ui.c.
References IMU_DATA_STRUCT::acc, IMU_DATA_STRUCT::calibrated::acc, ENC_DATA_STRUCT::calib, IMU_DATA_STRUCT::calib, IMU_DATA_STRUCT::calib_temp, DATALOGGER_NOT_RUNNING, datalogger_status(), get_time(), IMU_DATA_STRUCT::gyr, IMU_DATA_STRUCT::calibrated::gyr, IMU_DATA_STRUCT::mag, IMU_DATA_STRUCT::calibrated::mag, ENC_DATA_STRUCT::position, ENC_DATA_STRUCT::calibrate::position, SUCCESS, t0, IMU_DATA_STRUCT::temp, MRA_DATA_STRUCT::v_ctl, MRA_DATA_STRUCT::v_ctl_read, DATA_XYZ::x, DATA_XYZ_DOUBLE::x, DATA_XYZ::y, DATA_XYZ_DOUBLE::y, DATA_XYZ::z, and DATA_XYZ_DOUBLE::z.
Referenced by ui_update().
unsigned int telemetry_mode |
Definition at line 65 of file main2.c.
Referenced by periodic_task_2(), and threads_linux_periodic_task_2().