#include <state_manager.h>
|
enum | : uint16_t {
ERROR_NONE = 0x0000,
ERROR_INVALID_MIXER = 0x0001,
ERROR_IMU_NOT_RESPONDING = 0x0002,
ERROR_RC_LOST = 0x0004,
ERROR_UNHEALTHY_ESTIMATOR = 0x0008,
ERROR_TIME_GOING_BACKWARDS = 0x0010,
ERROR_UNCALIBRATED_IMU = 0x0020
} |
|
enum | Event {
EVENT_INITIALIZED,
EVENT_REQUEST_ARM,
EVENT_REQUEST_DISARM,
EVENT_RC_LOST,
EVENT_RC_FOUND,
EVENT_ERROR,
EVENT_NO_ERROR,
EVENT_CALIBRATION_COMPLETE,
EVENT_CALIBRATION_FAILED
} |
|
Definition at line 42 of file state_manager.h.
anonymous enum : uint16_t |
Enumerator |
---|
ERROR_NONE |
|
ERROR_INVALID_MIXER |
|
ERROR_IMU_NOT_RESPONDING |
|
ERROR_RC_LOST |
|
ERROR_UNHEALTHY_ESTIMATOR |
|
ERROR_TIME_GOING_BACKWARDS |
|
ERROR_UNCALIBRATED_IMU |
|
Definition at line 67 of file state_manager.h.
Enumerator |
---|
EVENT_INITIALIZED |
|
EVENT_REQUEST_ARM |
|
EVENT_REQUEST_DISARM |
|
EVENT_RC_LOST |
|
EVENT_RC_FOUND |
|
EVENT_ERROR |
|
EVENT_NO_ERROR |
|
EVENT_CALIBRATION_COMPLETE |
|
EVENT_CALIBRATION_FAILED |
|
Definition at line 54 of file state_manager.h.
Enumerator |
---|
FSM_STATE_INIT |
|
FSM_STATE_PREFLIGHT |
|
FSM_STATE_ARMED |
|
FSM_STATE_ERROR |
|
FSM_STATE_FAILSAFE |
|
FSM_STATE_CALIBRATING |
|
Definition at line 98 of file state_manager.h.
rosflight_firmware::StateManager::StateManager |
( |
ROSflight & |
parent | ) |
|
void rosflight_firmware::StateManager::clear_error |
( |
uint16_t |
error | ) |
|
void rosflight_firmware::StateManager::init |
( |
| ) |
|
void rosflight_firmware::StateManager::process_errors |
( |
| ) |
|
|
private |
void rosflight_firmware::StateManager::run |
( |
void |
| ) |
|
void rosflight_firmware::StateManager::set_error |
( |
uint16_t |
error | ) |
|
const State& rosflight_firmware::StateManager::state |
( |
| ) |
const |
|
inline |
void rosflight_firmware::StateManager::update_leds |
( |
| ) |
|
|
private |
FsmState rosflight_firmware::StateManager::fsm_state_ |
|
private |
uint32_t rosflight_firmware::StateManager::next_arming_error_msg_ms_ = 0 |
|
private |
uint32_t rosflight_firmware::StateManager::next_led_blink_ms_ = 0 |
|
private |
ROSflight& rosflight_firmware::StateManager::RF_ |
|
private |
State rosflight_firmware::StateManager::state_ |
|
private |
The documentation for this class was generated from the following files: