![]() |
master board program
v. 2 - 2018
|
Functions | |
THD_WORKING_AREA (waCompassCommunicationThread, 128) | |
THD_FUNCTION (CompassCommunicationThread, arg) | |
THD_WORKING_AREA (waCompassSaveThread, 128) | |
THD_FUNCTION (CompassSaveThread, arg) | |
int16_t | get_compass_degree (void) |
void | compass_init (void) |
void | read (uint8_t address, uint8_t length) |
uint8_t | read_one (uint8_t address) |
void | write (uint8_t address, uint8_t value) |
void | write2 (uint8_t address, uint8_t value) |
void | start (void) |
uint8_t | start2 (void) |
void | get_compass_values (void) |
void | get_calibration_status (void) |
void | get_calibration_values (void) |
void | set_calibration_values (void) |
void | set_calibration_values2 (void) |
void | clean_serial (SerialDriver *SD) |
Variables | |
thread_t * | compass_communication_thread |
thread_t * | compass_save_thread |
int16_t | attack_degree = 0 |
int16_t | actual_angle = -1 |
int16_t | final_degree = -1 |
int8_t | sys = 0 |
int8_t | gyro = 0 |
int8_t | accel = 0 |
int8_t | mag = 0 |
uint32_t | error_count = 0 |
int16_t | degree [3] |
int16_t | compass_degree |
uint8_t | calibration [22] = {252, 255, 9, 0, 26, 0, 203, 0, 84, 255, 226, 254, 1, 0, 255, 255, 255, 255, 232, 3, 142, 1} |
uint8_t | answer [6] |
uint8_t | response [2] |
void clean_serial | ( | SerialDriver * | SD | ) |
void compass_init | ( | void | ) |
void get_calibration_status | ( | void | ) |
void get_calibration_values | ( | void | ) |
int16_t get_compass_degree | ( | void | ) |
void get_compass_values | ( | void | ) |
void read | ( | uint8_t | address, |
uint8_t | length | ||
) |
uint8_t read_one | ( | uint8_t | address | ) |
void set_calibration_values | ( | void | ) |
void set_calibration_values2 | ( | void | ) |
void start | ( | void | ) |
uint8_t start2 | ( | void | ) |
THD_FUNCTION | ( | CompassCommunicationThread | , |
arg | |||
) |
THD_FUNCTION | ( | CompassSaveThread | , |
arg | |||
) |
THD_WORKING_AREA | ( | waCompassCommunicationThread | , |
128 | |||
) |
THD_WORKING_AREA | ( | waCompassSaveThread | , |
128 | |||
) |
void write | ( | uint8_t | address, |
uint8_t | value | ||
) |
void write2 | ( | uint8_t | address, |
uint8_t | value | ||
) |
int8_t accel = 0 |
int16_t actual_angle = -1 |
uint8_t answer[6] |
int16_t attack_degree = 0 |
uint8_t calibration[22] = {252, 255, 9, 0, 26, 0, 203, 0, 84, 255, 226, 254, 1, 0, 255, 255, 255, 255, 232, 3, 142, 1} |
thread_t* compass_communication_thread |
int16_t compass_degree |
thread_t* compass_save_thread |
int16_t degree[3] |
uint32_t error_count = 0 |
int16_t final_degree = -1 |
int8_t gyro = 0 |
int8_t mag = 0 |
uint8_t response[2] |
int8_t sys = 0 |