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/config.h
Views: 1798
//1#pragma once23//////////////////////////////////////////////////////////////////////////////4//5// Default and automatic configuration details.6//7//8#include "defines.h"910//////////////////////////////////////////////////////////////////////////////11//////////////////////////////////////////////////////////////////////////////12// HARDWARE CONFIGURATION AND CONNECTIONS13//////////////////////////////////////////////////////////////////////////////14//////////////////////////////////////////////////////////////////////////////1516#ifndef CONFIG_HAL_BOARD17#error CONFIG_HAL_BOARD must be defined to build Blimp18#endif1920#ifndef ARMING_DELAY_SEC21# define ARMING_DELAY_SEC 2.0f22#endif2324//////////////////////////////////////////////////////////////////////////////25// PWM control26// default RC speed in Hz27#ifndef RC_FAST_SPEED28# define RC_FAST_SPEED 49029#endif3031#ifndef MAV_SYSTEM_ID32# define MAV_SYSTEM_ID 133#endif3435// prearm GPS hdop check36#ifndef GPS_HDOP_GOOD_DEFAULT37# define GPS_HDOP_GOOD_DEFAULT 140 // minimum hdop that represents a good position. used during pre-arm checks if fence is enabled38#endif3940// Radio failsafe while using RC_override41#ifndef FS_RADIO_RC_OVERRIDE_TIMEOUT_MS42# define FS_RADIO_RC_OVERRIDE_TIMEOUT_MS 1000 // RC Radio failsafe triggers after 1 second while using RC_override from ground station43#endif4445// Radio failsafe46#ifndef FS_RADIO_TIMEOUT_MS47#define FS_RADIO_TIMEOUT_MS 500 // RC Radio Failsafe triggers after 500 milliseconds with No RC Input48#endif4950// missing terrain data failsafe51#ifndef FS_TERRAIN_TIMEOUT_MS52#define FS_TERRAIN_TIMEOUT_MS 5000 // 5 seconds of missing terrain data will trigger failsafe (RTL)53#endif5455// pre-arm baro vs inertial nav max alt disparity56#ifndef PREARM_MAX_ALT_DISPARITY_CM57# define PREARM_MAX_ALT_DISPARITY_CM 100 // barometer and inertial nav altitude must be within this many centimeters58#endif5960//////////////////////////////////////////////////////////////////////////////61// EKF Failsafe62#ifndef FS_EKF_ACTION_DEFAULT63# define FS_EKF_ACTION_DEFAULT FS_EKF_ACTION_LAND // EKF failsafe triggers land by default64#endif65#ifndef FS_EKF_THRESHOLD_DEFAULT66# define FS_EKF_THRESHOLD_DEFAULT 0.8f // EKF failsafe's default compass and velocity variance threshold above which the EKF failsafe will be triggered67#endif6869#ifndef EKF_ORIGIN_MAX_DIST_M70# define EKF_ORIGIN_MAX_DIST_M 50000 // EKF origin and waypoints (including home) must be within 50km71#endif7273//////////////////////////////////////////////////////////////////////////////74// FLIGHT_MODE75//76#ifndef FLIGHT_MODE_177# define FLIGHT_MODE_1 Mode::Number::MANUAL78#endif79#ifndef FLIGHT_MODE_280# define FLIGHT_MODE_2 Mode::Number::MANUAL81#endif82#ifndef FLIGHT_MODE_383# define FLIGHT_MODE_3 Mode::Number::MANUAL84#endif85#ifndef FLIGHT_MODE_486# define FLIGHT_MODE_4 Mode::Number::MANUAL87#endif88#ifndef FLIGHT_MODE_589# define FLIGHT_MODE_5 Mode::Number::MANUAL90#endif91#ifndef FLIGHT_MODE_692# define FLIGHT_MODE_6 Mode::Number::MANUAL93#endif9495//////////////////////////////////////////////////////////////////////////////96// Throttle Failsafe97//98#ifndef FS_THR_VALUE_DEFAULT99# define FS_THR_VALUE_DEFAULT 975100#endif101102//////////////////////////////////////////////////////////////////////////////103// Throttle control defaults104//105#ifndef THR_DZ_DEFAULT106# define THR_DZ_DEFAULT 100 // the deadzone above and below mid throttle while in althold or loiter107#endif108109#ifndef AUTO_DISARMING_DELAY110# define AUTO_DISARMING_DELAY 10111#endif112113// Default logging bitmask114#ifndef DEFAULT_LOG_BITMASK115# define DEFAULT_LOG_BITMASK \116MASK_LOG_ATTITUDE_MED | \117MASK_LOG_GPS | \118MASK_LOG_PM | \119MASK_LOG_CTUN | \120MASK_LOG_NTUN | \121MASK_LOG_RCIN | \122MASK_LOG_IMU | \123MASK_LOG_CMD | \124MASK_LOG_CURRENT | \125MASK_LOG_RCOUT | \126MASK_LOG_OPTFLOW | \127MASK_LOG_COMPASS | \128MASK_LOG_CAMERA | \129MASK_LOG_MOTBATT130#endif131132#ifndef CH_MODE_DEFAULT133# define CH_MODE_DEFAULT 5134#endif135136#ifndef HAL_FRAME_TYPE_DEFAULT137#define HAL_FRAME_TYPE_DEFAULT Fins::MOTOR_FRAME_TYPE_AIRFISH138#endif139140141