WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
flighterrors.h File Reference

Go to the source code of this file.

Macros

#define ERROR_INVALID_COMMAND   500
#define WARN_INVALID_CRC   -501
 Warning in the case where a CRC checksum is invalid.
#define ERROR_PKT_NOT_REGISTERED   502
 Error in the case where a packet type is not registered.
#define WARN_PKT_ALREADY_REGISTERED   -503
 Warning in the case where a packet type is registered (and isn't expected to be).
#define ERROR_PKT_TABLE_FULL   504
 Warning in the case where a packet type is registered but the packet type table is full.
#define WARN_PKT_INVALID_SIZE   -505
 Warning in the case where a packet has invalid size.
#define ERROR_CMD_EXECUTION_FAIL   506
 Error in case command execution fails.
#define WARN_INVALID_HEADER   -507
 Warning in case of invalid data header.
#define WARN_INVALID_FOOTER   -508
 Warning in case of invalid data footer.
#define WARN_STALE_DATA   -509
 Warning in case of stale data.
#define WARN_OUTLIER_DATA   -510
 Warning in case of outlier data.
#define ERROR_INVALID_PKT_TIME   511
 Error in case time is beyond a valid boundary for telemetry or commands.
#define WARN_INVALID_FLETCH_CHKSUM   -512
 Warning in the case where a fletch 8 checksum is invalid.
#define ERROR_INVALID_PRIORITY   513
 Error in case of an invalid priority level for telemetry.
#define ERROR_FAILED_HW_READ   600
#define ERROR_FAILED_HW_WRITE   601
 Error on failed write to a hardware interface.
#define WARN_SENSOR_READ_FAIL   -602
 Warning in case sensor read fails.
#define WARN_INCORRECT_SENSOR_ID   -603
 Warning in case sensor ID is incorrect.
#define WARN_SELF_TEST_FAIL   -604
 Warning in case self-test check fails.
#define WARN_CMD_RESPONSE_FAIL   -605
 Warning in case sensor command response fails.
#define WARN_CMD_ACK_ERROR   -606
 Warning in case command acknowledgement returns an error code.
#define WARN_INVALID_RANGE   -607
 Warning in case of invalid sensor range.
#define ERROR_SENS_PWR_MD_FAIL   608
 Error in case of Sensor powermode failure.
#define ERROR_ODR_SET_FAIL   609
 Error in case of ODR Set failure.
#define ERROR_SENS_INIT_FAIL   610
 Error in case of Sensor Init Set failure.
#define WARN_INCORRECT_RESPONSE_LEN   -611
 Warning in case of incorrect response length.
#define ERROR_FAILED_HW_INIT   612
 Error on trying to open the hardware interface.
#define WARN_SENS_INV_INPUT   -613
 Warning on invalid sensor input.
#define WARN_INCOMPLETE_READ   -614
 Warning on an incomplete read.
#define WARN_STALE_MEASUREMENT   -700
#define WARN_INERTIAL_NAV_INVALID_MEAS   -701
#define WARN_PARAM_INVALID_RANGE   -702
 Warning in case parameter is outside a valid range.
#define ERROR_NO_MEASUREMENT_UPDATE   703
 Error in case EKF cannot perform measurement update.
#define WARN_APP_ALREADY_REGISTERED   -575
#define ERROR_APPS_FULL   576
 Error in case we are registering more apps that we have space for.
#define ERROR_APP_NOT_FOUND   577
 Error in case we are looking for an app that does not exist.
#define WARN_SCH_WAIT_FOR_INIT   -578
 Warning in case where sim scheduler is waiting for initialization time.

Enumerations

enum  log_level_e {
  LOG_NONE = 0 , LOG_ERROR = 1 , LOG_WARNING = 2 , LOG_INFO = 3 ,
  LOG_DEBUG = 4
}
 Log level enumerations. More...

Macro Definition Documentation

◆ ERROR_APP_NOT_FOUND

#define ERROR_APP_NOT_FOUND   577

Error in case we are looking for an app that does not exist.

◆ ERROR_APPS_FULL

#define ERROR_APPS_FULL   576

Error in case we are registering more apps that we have space for.

◆ ERROR_CMD_EXECUTION_FAIL

#define ERROR_CMD_EXECUTION_FAIL   506

Error in case command execution fails.

◆ ERROR_FAILED_HW_INIT

#define ERROR_FAILED_HW_INIT   612

Error on trying to open the hardware interface.

◆ ERROR_FAILED_HW_READ

#define ERROR_FAILED_HW_READ   600

Hardware and Sensor Interfacing Errors

Error on failed read of a hardware interface

◆ ERROR_FAILED_HW_WRITE

#define ERROR_FAILED_HW_WRITE   601

Error on failed write to a hardware interface.

◆ ERROR_INVALID_COMMAND

#define ERROR_INVALID_COMMAND   500

Command and Telemetry Errors

Error in the case where an invalid command is issued to an app

◆ ERROR_INVALID_PKT_TIME

#define ERROR_INVALID_PKT_TIME   511

Error in case time is beyond a valid boundary for telemetry or commands.

◆ ERROR_INVALID_PRIORITY

#define ERROR_INVALID_PRIORITY   513

Error in case of an invalid priority level for telemetry.

◆ ERROR_NO_MEASUREMENT_UPDATE

#define ERROR_NO_MEASUREMENT_UPDATE   703

Error in case EKF cannot perform measurement update.

◆ ERROR_ODR_SET_FAIL

#define ERROR_ODR_SET_FAIL   609

Error in case of ODR Set failure.

◆ ERROR_PKT_NOT_REGISTERED

#define ERROR_PKT_NOT_REGISTERED   502

Error in the case where a packet type is not registered.

◆ ERROR_PKT_TABLE_FULL

#define ERROR_PKT_TABLE_FULL   504

Warning in the case where a packet type is registered but the packet type table is full.

◆ ERROR_SENS_INIT_FAIL

#define ERROR_SENS_INIT_FAIL   610

Error in case of Sensor Init Set failure.

◆ ERROR_SENS_PWR_MD_FAIL

#define ERROR_SENS_PWR_MD_FAIL   608

Error in case of Sensor powermode failure.

◆ WARN_APP_ALREADY_REGISTERED

#define WARN_APP_ALREADY_REGISTERED   -575

Executive Errors

Warning in case we are registering an app and ID that is already registered

◆ WARN_CMD_ACK_ERROR

#define WARN_CMD_ACK_ERROR   -606

Warning in case command acknowledgement returns an error code.

◆ WARN_CMD_RESPONSE_FAIL

#define WARN_CMD_RESPONSE_FAIL   -605

Warning in case sensor command response fails.

◆ WARN_INCOMPLETE_READ

#define WARN_INCOMPLETE_READ   -614

Warning on an incomplete read.

◆ WARN_INCORRECT_RESPONSE_LEN

#define WARN_INCORRECT_RESPONSE_LEN   -611

Warning in case of incorrect response length.

◆ WARN_INCORRECT_SENSOR_ID

#define WARN_INCORRECT_SENSOR_ID   -603

Warning in case sensor ID is incorrect.

◆ WARN_INERTIAL_NAV_INVALID_MEAS

#define WARN_INERTIAL_NAV_INVALID_MEAS   -701

Warning when inertial navigation dead reckoning propagation cannot perform due to no valid measurements in input or storage App passes inputs into outputs regardless (this should only be an issue for very short durations on app startup and reactivation)

◆ WARN_INVALID_CRC

#define WARN_INVALID_CRC   -501

Warning in the case where a CRC checksum is invalid.

◆ WARN_INVALID_FLETCH_CHKSUM

#define WARN_INVALID_FLETCH_CHKSUM   -512

Warning in the case where a fletch 8 checksum is invalid.

◆ WARN_INVALID_FOOTER

#define WARN_INVALID_FOOTER   -508

Warning in case of invalid data footer.

◆ WARN_INVALID_HEADER

#define WARN_INVALID_HEADER   -507

Warning in case of invalid data header.

◆ WARN_INVALID_RANGE

#define WARN_INVALID_RANGE   -607

Warning in case of invalid sensor range.

◆ WARN_OUTLIER_DATA

#define WARN_OUTLIER_DATA   -510

Warning in case of outlier data.

◆ WARN_PARAM_INVALID_RANGE

#define WARN_PARAM_INVALID_RANGE   -702

Warning in case parameter is outside a valid range.

◆ WARN_PKT_ALREADY_REGISTERED

#define WARN_PKT_ALREADY_REGISTERED   -503

Warning in the case where a packet type is registered (and isn't expected to be).

◆ WARN_PKT_INVALID_SIZE

#define WARN_PKT_INVALID_SIZE   -505

Warning in the case where a packet has invalid size.

◆ WARN_SCH_WAIT_FOR_INIT

#define WARN_SCH_WAIT_FOR_INIT   -578

Warning in case where sim scheduler is waiting for initialization time.

◆ WARN_SELF_TEST_FAIL

#define WARN_SELF_TEST_FAIL   -604

Warning in case self-test check fails.

◆ WARN_SENS_INV_INPUT

#define WARN_SENS_INV_INPUT   -613

Warning on invalid sensor input.

◆ WARN_SENSOR_READ_FAIL

#define WARN_SENSOR_READ_FAIL   -602

Warning in case sensor read fails.

◆ WARN_STALE_DATA

#define WARN_STALE_DATA   -509

Warning in case of stale data.

◆ WARN_STALE_MEASUREMENT

#define WARN_STALE_MEASUREMENT   -700

GNC Errors

Warning when a measurement is incorporated in an EKF but is considered stale, which may result in poor filter performance

Enumeration Type Documentation

◆ log_level_e

Log level enumerations.

These enumerations indicate the log level at which the event loger should log. ERROR is the lowest bar for output, and is output in almost every case. Debug is the most restrictive and typically will be output only when set.

Enumerator
LOG_NONE 
LOG_ERROR 

No output at all.

LOG_WARNING 

Output in almost all cases.

LOG_INFO 
LOG_DEBUG