Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/Blimp/defines.h
Views: 1798
#pragma once12#include <AP_HAL/AP_HAL_Boards.h>34// bit options for DEV_OPTIONS parameter5enum DevOptions {6DevOptionADSBMAVLink = 1,7DevOptionVFR_HUDRelativeAlt = 2,8DevOptionSetAttitudeTarget_ThrustAsThrust = 4,9};1011// Logging parameters - only 32 messages are available to the vehicle here.12enum LoggingParameters {13LOG_CONTROL_TUNING_MSG,14LOG_DATA_INT16_MSG,15LOG_DATA_UINT16_MSG,16LOG_DATA_INT32_MSG,17LOG_DATA_UINT32_MSG,18LOG_DATA_FLOAT_MSG,19LOG_PARAMTUNE_MSG,20LOG_HELI_MSG,21LOG_GUIDEDTARGET_MSG,22LOG_SYSIDD_MSG,23LOG_SYSIDS_MSG,24LOG_FINI_MSG,25LOG_FINO_MSG,26LOG_PIDD_MSG,27LOG_PIVN_MSG,28LOG_PIVE_MSG,29LOG_PIVD_MSG,30LOG_PIVY_MSG,3132};3334#define MASK_LOG_ATTITUDE_FAST (1<<0)35#define MASK_LOG_ATTITUDE_MED (1<<1)36#define MASK_LOG_GPS (1<<2)37#define MASK_LOG_PM (1<<3)38#define MASK_LOG_CTUN (1<<4)39#define MASK_LOG_NTUN (1<<5)40#define MASK_LOG_RCIN (1<<6)41#define MASK_LOG_IMU (1<<7)42#define MASK_LOG_CMD (1<<8)43#define MASK_LOG_CURRENT (1<<9)44#define MASK_LOG_RCOUT (1<<10)45#define MASK_LOG_OPTFLOW (1<<11)46#define MASK_LOG_PID (1<<12)47#define MASK_LOG_COMPASS (1<<13)48#define MASK_LOG_INAV (1<<14) // deprecated49#define MASK_LOG_CAMERA (1<<15)50#define MASK_LOG_MOTBATT (1UL<<17)51#define MASK_LOG_IMU_FAST (1UL<<18)52#define MASK_LOG_IMU_RAW (1UL<<19)53#define MASK_LOG_ANY 0xFFFF5455// Radio failsafe definitions (FS_THR parameter)56#define FS_THR_DISABLED 057#define FS_THR_ENABLED_ALWAYS_RTL 158#define FS_THR_ENABLED_CONTINUE_MISSION 2 // Removed in 4.0+, now use fs_options59#define FS_THR_ENABLED_ALWAYS_LAND 360#define FS_THR_ENABLED_ALWAYS_SMARTRTL_OR_RTL 461#define FS_THR_ENABLED_ALWAYS_SMARTRTL_OR_LAND 56263// GCS failsafe definitions (FS_GCS_ENABLE parameter)64#define FS_GCS_DISABLED 065#define FS_GCS_ENABLED_ALWAYS_RTL 166#define FS_GCS_ENABLED_CONTINUE_MISSION 2 // Removed in 4.0+, now use fs_options67#define FS_GCS_ENABLED_ALWAYS_SMARTRTL_OR_RTL 368#define FS_GCS_ENABLED_ALWAYS_SMARTRTL_OR_LAND 469#define FS_GCS_ENABLED_ALWAYS_LAND 57071// EKF failsafe definitions (FS_EKF_ACTION parameter)72#define FS_EKF_ACTION_LAND 1 // switch to LAND mode on EKF failsafe73#define FS_EKF_ACTION_LAND_EVEN_MANUAL 3 // switch to Land mode on EKF failsafe even if in Manual mode7475// for PILOT_THR_BHV parameter76#define THR_BEHAVE_FEEDBACK_FROM_MID_STICK (1<<0)77#define THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND (1<<1)78#define THR_BEHAVE_DISARM_ON_LAND_DETECT (1<<2)798081