#include <AP_BoardConfig.h>
|
enum | px4_board_type {
PX4_BOARD_AUTO = 0,
PX4_BOARD_PX4V1 = 1,
PX4_BOARD_PIXHAWK = 2,
PX4_BOARD_PIXHAWK2 = 3,
PX4_BOARD_PIXRACER = 4,
PX4_BOARD_PHMINI = 5,
PX4_BOARD_PH2SLIM = 6,
PX4_BOARD_AEROFC = 13,
PX4_BOARD_PIXHAWK_PRO = 14,
PX4_BOARD_AUAV21 = 20,
PX4_BOARD_PCNC1 = 21,
PX4_BOARD_MINDPXV2 = 22,
PX4_BOARD_SP01 = 23,
VRX_BOARD_BRAIN51 = 30,
VRX_BOARD_BRAIN52 = 32,
VRX_BOARD_BRAIN52E = 33,
VRX_BOARD_UBRAIN51 = 34,
VRX_BOARD_UBRAIN52 = 35,
VRX_BOARD_CORE10 = 36,
VRX_BOARD_BRAIN54 = 38,
PX4_BOARD_OLDDRIVERS = 100
} |
|
enum | board_safety_button_option { BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF =1,
BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON =2,
BOARD_SAFETY_OPTION_BUTTON_ACTIVE_ARMED =4
} |
|
Definition at line 41 of file AP_BoardConfig.h.
◆ board_safety_button_option
Enumerator |
---|
BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_OFF | |
BOARD_SAFETY_OPTION_BUTTON_ACTIVE_SAFETY_ON | |
BOARD_SAFETY_OPTION_BUTTON_ACTIVE_ARMED | |
Definition at line 129 of file AP_BoardConfig.h.
◆ px4_board_type
Enumerator |
---|
PX4_BOARD_AUTO | |
PX4_BOARD_PX4V1 | |
PX4_BOARD_PIXHAWK | |
PX4_BOARD_PIXHAWK2 | |
PX4_BOARD_PIXRACER | |
PX4_BOARD_PHMINI | |
PX4_BOARD_PH2SLIM | |
PX4_BOARD_AEROFC | |
PX4_BOARD_PIXHAWK_PRO | |
PX4_BOARD_AUAV21 | |
PX4_BOARD_PCNC1 | |
PX4_BOARD_MINDPXV2 | |
PX4_BOARD_SP01 | |
VRX_BOARD_BRAIN51 | |
VRX_BOARD_BRAIN52 | |
VRX_BOARD_BRAIN52E | |
VRX_BOARD_UBRAIN51 | |
VRX_BOARD_UBRAIN52 | |
VRX_BOARD_CORE10 | |
VRX_BOARD_BRAIN54 | |
PX4_BOARD_OLDDRIVERS | |
Definition at line 78 of file AP_BoardConfig.h.
◆ AP_BoardConfig() [1/2]
AP_BoardConfig::AP_BoardConfig |
( |
| ) |
|
|
inline |
◆ AP_BoardConfig() [2/2]
◆ board_autodetect()
void AP_BoardConfig::board_autodetect |
( |
void |
| ) |
|
|
private |
◆ board_init_safety()
void AP_BoardConfig::board_init_safety |
( |
void |
| ) |
|
|
private |
◆ board_setup()
void AP_BoardConfig::board_setup |
( |
void |
| ) |
|
|
private |
◆ board_setup_drivers()
void AP_BoardConfig::board_setup_drivers |
( |
void |
| ) |
|
|
private |
◆ board_setup_safety_mask()
void AP_BoardConfig::board_setup_safety_mask |
( |
void |
| ) |
|
|
private |
◆ board_setup_sbus()
void AP_BoardConfig::board_setup_sbus |
( |
void |
| ) |
|
|
private |
◆ board_setup_uart()
void AP_BoardConfig::board_setup_uart |
( |
void |
| ) |
|
|
private |
◆ get_board_type()
◆ get_instance()
◆ get_pwm_count()
static uint8_t AP_BoardConfig::get_pwm_count |
( |
void |
| ) |
|
|
inlinestatic |
◆ get_safety_button_options()
uint16_t AP_BoardConfig::get_safety_button_options |
( |
void |
| ) |
|
|
inline |
◆ get_safety_mask()
uint16_t AP_BoardConfig::get_safety_mask |
( |
void |
| ) |
const |
|
inline |
◆ in_sensor_config_error()
static bool AP_BoardConfig::in_sensor_config_error |
( |
void |
| ) |
|
|
inlinestatic |
◆ init()
void AP_BoardConfig::init |
( |
void |
| ) |
|
◆ init_safety()
void AP_BoardConfig::init_safety |
( |
void |
| ) |
|
◆ io_enabled()
static bool AP_BoardConfig::io_enabled |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 115 of file AP_BoardConfig.h.
Referenced by ChibiOS::RCOutput::_safety_switch_state(), ChibiOS::RCInput::_timer_tick(), ChibiOS::RCOutput::cork(), ChibiOS::RCOutput::enable_px4io_sbus_out(), ChibiOS::RCOutput::force_safety_off(), ChibiOS::RCOutput::force_safety_on(), ChibiOS::RCOutput::init(), ChibiOS::RCOutput::push(), ChibiOS::RCOutput::set_default_rate(), ChibiOS::RCOutput::set_freq(), ChibiOS::Util::set_imu_temp(), ChibiOS::RCOutput::set_output_mode(), ChibiOS::RCOutput::set_safety_pwm(), and ChibiOS::RCOutput::write().
◆ operator=()
◆ px4_setup_peripherals()
void AP_BoardConfig::px4_setup_peripherals |
( |
void |
| ) |
|
|
private |
◆ px4_setup_pwm()
void AP_BoardConfig::px4_setup_pwm |
( |
void |
| ) |
|
|
private |
◆ px4_setup_px4io()
void AP_BoardConfig::px4_setup_px4io |
( |
void |
| ) |
|
|
private |
◆ px4_setup_safety_mask()
void AP_BoardConfig::px4_setup_safety_mask |
( |
void |
| ) |
|
|
private |
◆ px4_start_driver()
bool AP_BoardConfig::px4_start_driver |
( |
main_fn_t |
main_function, |
|
|
const char * |
name, |
|
|
const char * |
arguments |
|
) |
| |
|
static |
◆ px4_tone_alarm()
void AP_BoardConfig::px4_tone_alarm |
( |
const char * |
tone_string | ) |
|
|
private |
◆ sensor_config_error()
void AP_BoardConfig::sensor_config_error |
( |
const char * |
reason | ) |
|
|
static |
◆ set_default_safety_ignore_mask()
void AP_BoardConfig::set_default_safety_ignore_mask |
( |
uint16_t |
mask | ) |
|
◆ spi_check_register()
bool AP_BoardConfig::spi_check_register |
( |
const char * |
devname, |
|
|
uint8_t |
regnum, |
|
|
uint8_t |
value, |
|
|
uint8_t |
read_flag = 0x80 |
|
) |
| |
|
private |
◆ validate_board_type()
void AP_BoardConfig::validate_board_type |
( |
void |
| ) |
|
|
private |
◆ _imu_target_temperature
AP_Int8 AP_BoardConfig::_imu_target_temperature |
|
private |
◆ _in_sensor_config_error
bool AP_BoardConfig::_in_sensor_config_error |
|
staticprivate |
◆ board_type
AP_Int8 AP_BoardConfig::board_type |
◆ ignore_safety_channels
AP_Int32 AP_BoardConfig::ignore_safety_channels |
◆ instance
◆ io_enable
AP_Int8 AP_BoardConfig::io_enable |
◆ pwm_count
AP_Int8 AP_BoardConfig::pwm_count |
|
private |
◆ px4_configured_board
◆ safety_enable
AP_Int8 AP_BoardConfig::safety_enable |
◆ safety_option
AP_Int16 AP_BoardConfig::safety_option |
◆ sbus_out_rate
AP_Int8 AP_BoardConfig::sbus_out_rate |
◆ ser1_rtscts
AP_Int8 AP_BoardConfig::ser1_rtscts |
◆ ser2_rtscts
AP_Int8 AP_BoardConfig::ser2_rtscts |
◆ state
struct { ... } AP_BoardConfig::state |
Referenced by board_autodetect(), board_init_safety(), board_setup_drivers(), board_setup_sbus(), board_setup_uart(), get_safety_button_options(), get_safety_mask(), io_enabled(), px4_setup_peripherals(), px4_setup_safety_mask(), set_default_safety_ignore_mask(), and validate_board_type().
◆ var_info
◆ vehicleSerialNumber
AP_Int16 AP_BoardConfig::vehicleSerialNumber |
|
private |
The documentation for this class was generated from the following files: