ardupilot/Tools/AP_Periph/Parameters.h

70 lines
1.4 KiB
C
Raw Normal View History

2019-05-26 22:46:41 -03:00
#pragma once
#include <AP_Common/AP_Common.h>
// Global parameter class.
//
class Parameters {
public:
static const uint16_t k_format_version = 2;
enum {
// Layout version number, always key zero.
//
k_param_format_version = 0,
k_param_gps,
k_param_compass,
k_param_can_node,
k_param_can_baudrate,
k_param_baro,
k_param_buzz_volume,
k_param_led_brightness,
2019-10-03 08:02:56 -03:00
k_param_airspeed,
k_param_rangefinder,
k_param_flash_bootloader,
k_param_rangefinder_baud,
k_param_adsb_baudrate,
k_param_hardpoint_id,
k_param_hardpoint_rate,
2019-12-25 04:58:51 -04:00
k_param_baro_enable,
k_param_esc_number,
2019-05-26 22:46:41 -03:00
};
AP_Int16 format_version;
AP_Int16 can_node;
AP_Int32 can_baudrate;
#ifdef HAL_PERIPH_ENABLE_BUZZER
AP_Int8 buzz_volume;
#endif
2019-10-18 21:28:09 -03:00
#ifdef AP_PERIPH_HAVE_LED
AP_Int8 led_brightness;
#endif
2019-12-25 04:58:51 -04:00
#ifdef HAL_PERIPH_ENABLE_BARO
AP_Int8 baro_enable;
#endif
#if !defined(HAL_NO_FLASH_SUPPORT) && !defined(HAL_NO_ROMFS_SUPPORT)
AP_Int8 flash_bootloader;
#endif
#ifdef HAL_PERIPH_ENABLE_RANGEFINDER
AP_Int32 rangefinder_baud;
#endif
#ifdef HAL_PERIPH_ENABLE_ADSB
AP_Int32 adsb_baudrate;
#endif
#ifdef HAL_PERIPH_ENABLE_PWM_HARDPOINT
AP_Int16 hardpoint_id;
AP_Int8 hardpoint_rate;
#endif
#ifdef HAL_PERIPH_ENABLE_HWESC
AP_Int8 esc_number;
#endif
2019-05-26 22:46:41 -03:00
Parameters() {}
};
extern const AP_Param::Info var_info[];