#pragma once12#define AP_PARAM_VEHICLE_NAME blimp34#include <AP_Common/AP_Common.h>5#include "RC_Channel_Blimp.h"6#include <SRV_Channel/SRV_Channel.h>78// Global parameter class.9//10class Parameters11{12public:13// The version of the layout as described by the parameter enum.14//15// When changing the parameter enum in an incompatible fashion, this16// value should be incremented by one.17//18// The increment will prevent old parameters from being used incorrectly19// by newer code.20//21static const uint16_t k_format_version = 1;2223// Parameter identities.24//25// The enumeration defined here is used to ensure that every parameter26// or parameter group has a unique ID number. This number is used by27// AP_Param to store and locate parameters in EEPROM.28//29// Note that entries without a number are assigned the next number after30// the entry preceding them. When adding new entries, ensure that they31// don't overlap.32//33// Try to group related variables together, and assign them a set34// range in the enumeration. Place these groups in numerical order35// at the end of the enumeration.36//37// WARNING: Care should be taken when editing this enumeration as the38// AP_Param load/save code depends on the values here to identify39// variables saved in EEPROM.40//41//42enum {43// Layout version number, always key zero.44//45k_param_format_version = 0,46k_param_ins, // libraries/AP_InertialSensor variables47k_param_NavEKF2,48k_param_g2, // 2nd block of parameters49k_param_NavEKF3,50k_param_can_mgr,51k_param_osd,5253// simulation54k_param_sitl = 10,5556// barometer object (needed for SITL)57k_param_barometer,5859// scheduler object (for debugging)60k_param_scheduler,6162// BoardConfig object63k_param_BoardConfig,6465// GPS object66k_param_gps,6768// Parachute object69k_param_parachute,7071// Landing gear object72k_param_landinggear,7374// Input Management object75k_param_input_manager,7677// Misc78k_param_gps_hdop_good,79k_param_battery,80k_param_poshold_brake_rate,81k_param_poshold_brake_angle_max,82k_param_pilot_accel_z,83k_param_fs_ekf_thresh,84k_param_terrain,85k_param_throttle_deadzone,86k_param_log_bitmask,87k_param_throttle_filt,88k_param_throttle_behavior,89k_param_pilot_takeoff_alt, //unused9091// AP_ADSB Library92k_param_adsb,93k_param_notify,9495//PID Controllers96k_param_pid_vel_xy = 32,97k_param_pid_vel_z,98k_param_pid_vel_yaw,99k_param_pid_pos_xy,100k_param_pid_pos_z,101k_param_pid_pos_yaw,102103//Position & Velocity controller params104k_param_max_vel_xy = 50,105k_param_max_vel_z,106k_param_max_vel_yaw,107k_param_max_pos_xy,108k_param_max_pos_z,109k_param_max_pos_yaw,110k_param_simple_mode,111k_param_dis_mask,112k_param_pid_dz,113114//115// 90: misc2116//117k_param_motors = 90,118k_param_disarm_delay,119k_param_fs_crash_check,120k_param_throw_motor_start,121k_param_rtl_alt_type,122k_param_avoid,123k_param_avoidance_adsb,124125// 97: RSSI126k_param_rssi = 97,127128// 110: Telemetry control129//130k_param_gcs0_unused = 110, // unused in ArduPilot-4.7131k_param_gcs1_unused, // unused in ArduPilot-4.7132k_param_sysid_this_mav_old,133k_param_sysid_my_gcs_old,134k_param_telem_delay_old, // used for conversion in ArduPilot-4.7135k_param_gcs2_unused, // unused in ArduPilot-4.7136k_param_serial_manager_old,137k_param_gcs3_unused, // unused in ArduPilot-4.7138k_param_gcs_pid_mask,139k_param_gcs4_unused, // unused in ArduPilot-4.7140k_param_gcs5_unused, // unused in ArduPilot-4.7141k_param_gcs6_unused, // unused in ArduPilot-4.7142143//144// 135 : reserved for Solo until features merged with master145//146k_param_rtl_speed_cms = 135,147k_param_fs_batt_curr_rtl,148k_param_rtl_cone_slope, // 137149150//151// 140: Sensor parameters152//153k_param_compass,154k_param_frame_type, //unused155k_param_ahrs, // AHRS group // 159156157//158// 160: Navigation parameters159//160k_param_rtl_altitude = 160,161k_param_rtl_loiter_time,162k_param_rtl_alt_final,163164165//166// Camera and mount parameters167//168k_param_camera = 165,169k_param_camera_mount,170171//172// 170: Radio settings173//174k_param_failsafe_throttle = 170,175k_param_failsafe_throttle_value,176k_param_radio_tuning, // unused177k_param_rc_speed = 192,178k_param_failsafe_gcs,179k_param_rcmap, // 199180181//182// 200: flight modes183//184k_param_flight_mode1 = 200,185k_param_flight_mode2,186k_param_flight_mode3,187k_param_flight_mode4,188k_param_flight_mode5,189k_param_flight_mode6,190k_param_flight_mode_chan,191k_param_initial_mode,192193//194// 220: Misc195//196k_param_fs_ekf_action = 220,197k_param_arming,198199k_param_logger = 253, // 253 - Logging Group200201k_param_vehicle = 257, // vehicle common block of parameters202k_param__gcs = 258,203204// the k_param_* space is 9-bits in size205};206207AP_Int16 format_version;208209AP_Float throttle_filt;210AP_Int16 throttle_behavior;211212AP_Int8 failsafe_gcs; // ground station failsafe behavior213AP_Int16 gps_hdop_good; // GPS Hdop value at or below this value represent a good position214215// Throttle216//217AP_Int8 failsafe_throttle;218AP_Int16 failsafe_throttle_value;219AP_Int16 throttle_deadzone;220221// Flight modes222//223AP_Int8 flight_mode1;224AP_Int8 flight_mode2;225AP_Int8 flight_mode3;226AP_Int8 flight_mode4;227AP_Int8 flight_mode5;228AP_Int8 flight_mode6;229AP_Int8 flight_mode_chan;230AP_Int8 initial_mode;231232// Misc233//234AP_Int32 log_bitmask;235AP_Int8 disarm_delay;236237AP_Int8 fs_ekf_action;238AP_Int8 fs_crash_check;239AP_Float fs_ekf_thresh;240AP_Int16 gcs_pid_mask;241242AP_Float max_vel_xy;243AP_Float max_vel_z;244AP_Float max_vel_yaw;245AP_Float max_pos_xy;246AP_Float max_pos_z;247AP_Float max_pos_yaw;248249AP_Int8 simple_mode;250AP_Int16 dis_mask;251AP_Float pid_dz;252253AP_Int8 rtl_alt_type;254255AP_Int16 rc_speed; // speed of fast RC Channels in Hz256257// Note: keep initializers here in the same order as they are declared258// above.259Parameters()260{261}262};263264/*2652nd block of parameters, to avoid going past 256 top level keys266*/267class ParametersG2268{269public:270ParametersG2(void);271272// var_info for holding Parameter information273static const struct AP_Param::GroupInfo var_info[];274275// altitude at which nav control can start in takeoff276AP_Float wp_navalt_min;277278// developer options279AP_Int32 dev_options;280281// acro exponent parameters282AP_Float acro_y_expo;283284// frame class285AP_Int8 frame_class;286287// RC input channels288RC_Channels_Blimp rc_channels;289290// control over servo output ranges291SRV_Channels servo_channels;292293// Additional pilot velocity items294AP_Int16 pilot_speed_dn;295296// Land alt final stage297AP_Int16 land_alt_low;298299// vibration failsafe enable/disable300AP_Int8 fs_vibe_enabled;301302// Failsafe options bitmask #36303AP_Int32 fs_options;304305AP_Float fs_gcs_timeout;306};307308extern const AP_Param::Info var_info[];309310311