2014-01-19 21:57:39 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2016-02-17 21:25:16 -04:00
|
|
|
#pragma once
|
2014-01-19 21:57:39 -04:00
|
|
|
|
2015-08-11 03:28:42 -03:00
|
|
|
#include <AP_HAL/AP_HAL.h>
|
|
|
|
#include <AP_Common/AP_Common.h>
|
|
|
|
#include <AP_Param/AP_Param.h>
|
2014-01-19 21:57:39 -04:00
|
|
|
|
|
|
|
class AP_BoardConfig
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// constructor
|
|
|
|
AP_BoardConfig(void)
|
|
|
|
{
|
|
|
|
AP_Param::setup_object_defaults(this, var_info);
|
|
|
|
};
|
|
|
|
|
|
|
|
void init(void);
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
|
|
|
|
private:
|
2015-04-29 23:02:27 -03:00
|
|
|
AP_Int16 vehicleSerialNumber;
|
|
|
|
|
2014-02-09 21:57:19 -04:00
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
2014-01-19 21:57:39 -04:00
|
|
|
AP_Int8 _pwm_count;
|
2014-02-09 21:57:19 -04:00
|
|
|
AP_Int8 _ser1_rtscts;
|
|
|
|
AP_Int8 _ser2_rtscts;
|
2014-02-11 00:58:02 -04:00
|
|
|
AP_Int8 _safety_enable;
|
2016-03-10 00:26:47 -04:00
|
|
|
AP_Int8 _sbus_out_rate;
|
2015-11-06 02:10:08 -04:00
|
|
|
#ifndef CONFIG_ARCH_BOARD_PX4FMU_V1
|
2015-11-05 19:23:37 -04:00
|
|
|
AP_Int8 _can_enable;
|
2014-02-09 21:57:19 -04:00
|
|
|
#endif
|
2015-11-06 02:10:08 -04:00
|
|
|
#endif
|
2014-03-31 14:53:16 -03:00
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
|
2014-06-27 11:27:31 -03:00
|
|
|
|
2014-03-31 14:53:16 -03:00
|
|
|
#endif
|
2014-01-19 21:57:39 -04:00
|
|
|
};
|