//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// missing terrain data failsafe46#ifndef FS_TERRAIN_TIMEOUT_MS47#define FS_TERRAIN_TIMEOUT_MS 5000 // 5 seconds of missing terrain data will trigger failsafe (RTL)48#endif4950// pre-arm baro vs inertial nav max alt disparity51#ifndef PREARM_MAX_ALT_DISPARITY_CM52# define PREARM_MAX_ALT_DISPARITY_CM 100 // barometer and inertial nav altitude must be within this many centimeters53#endif5455//////////////////////////////////////////////////////////////////////////////56// EKF Failsafe57#ifndef FS_EKF_ACTION_DEFAULT58# define FS_EKF_ACTION_DEFAULT FS_EKF_ACTION_LAND // EKF failsafe triggers land by default59#endif60#ifndef FS_EKF_THRESHOLD_DEFAULT61# define FS_EKF_THRESHOLD_DEFAULT 0.8f // EKF failsafe's default compass and velocity variance threshold above which the EKF failsafe will be triggered62#endif6364//////////////////////////////////////////////////////////////////////////////65// FLIGHT_MODE66//67#ifndef FLIGHT_MODE_168# define FLIGHT_MODE_1 Mode::Number::MANUAL69#endif70#ifndef FLIGHT_MODE_271# define FLIGHT_MODE_2 Mode::Number::MANUAL72#endif73#ifndef FLIGHT_MODE_374# define FLIGHT_MODE_3 Mode::Number::MANUAL75#endif76#ifndef FLIGHT_MODE_477# define FLIGHT_MODE_4 Mode::Number::MANUAL78#endif79#ifndef FLIGHT_MODE_580# define FLIGHT_MODE_5 Mode::Number::MANUAL81#endif82#ifndef FLIGHT_MODE_683# define FLIGHT_MODE_6 Mode::Number::MANUAL84#endif8586//////////////////////////////////////////////////////////////////////////////87// Throttle Failsafe88//89#ifndef FS_THR_VALUE_DEFAULT90# define FS_THR_VALUE_DEFAULT 97591#endif9293//////////////////////////////////////////////////////////////////////////////94// Throttle control defaults95//96#ifndef THR_DZ_DEFAULT97# define THR_DZ_DEFAULT 100 // the deadzone above and below mid throttle while in althold or loiter98#endif99100#ifndef AUTO_DISARMING_DELAY101# define AUTO_DISARMING_DELAY 10102#endif103104// Default logging bitmask105#ifndef DEFAULT_LOG_BITMASK106# define DEFAULT_LOG_BITMASK \107MASK_LOG_ATTITUDE_MED | \108MASK_LOG_GPS | \109MASK_LOG_PM | \110MASK_LOG_CTUN | \111MASK_LOG_NTUN | \112MASK_LOG_RCIN | \113MASK_LOG_IMU | \114MASK_LOG_CMD | \115MASK_LOG_CURRENT | \116MASK_LOG_RCOUT | \117MASK_LOG_OPTFLOW | \118MASK_LOG_COMPASS | \119MASK_LOG_CAMERA | \120MASK_LOG_MOTBATT121#endif122123#ifndef CH_MODE_DEFAULT124# define CH_MODE_DEFAULT 5125#endif126127#ifndef HAL_FRAME_TYPE_DEFAULT128#define HAL_FRAME_TYPE_DEFAULT Fins::MOTOR_FRAME_TYPE_AIRFISH129#endif130131132