mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Sub: tweak default parameters for joystick buttons
This commit is contained in:
parent
ba389e3395
commit
4af616f19e
@ -730,11 +730,11 @@ void Sub::load_parameters()
|
||||
AP_Param::set_default_by_name("MNT_JSTICK_SPD", 100);
|
||||
AP_Param::set_default_by_name("BRD_RTC_TYPE", 3);
|
||||
AP_Param::set_default_by_name("BARO_PROBE_EXT", 768);
|
||||
|
||||
AP_Param::set_by_name("MNT_RC_IN_PAN", 7);
|
||||
AP_Param::set_by_name("MNT_RC_IN_TILT", 8);
|
||||
// We should ignore this parameter since ROVs are neutral buoyancy
|
||||
AP_Param::set_by_name("MOT_THST_HOVER", 0.5);
|
||||
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR
|
||||
AP_Param::set_default_by_name("BARO_PROBE_EXT", 0);
|
||||
AP_Param::set_default_by_name("BATT_MONITOR", 4);
|
||||
|
@ -675,7 +675,7 @@ JSButton* Sub::get_button(uint8_t index)
|
||||
void Sub::default_js_buttons()
|
||||
{
|
||||
JSButton::button_function_t defaults[16][2] = {
|
||||
{JSButton::button_function_t::k_none, JSButton::button_function_t::k_none},
|
||||
{JSButton::button_function_t::k_shift, JSButton::button_function_t::k_none},
|
||||
{JSButton::button_function_t::k_mode_manual, JSButton::button_function_t::k_none},
|
||||
{JSButton::button_function_t::k_mode_depth_hold, JSButton::button_function_t::k_none},
|
||||
{JSButton::button_function_t::k_mode_stabilize, JSButton::button_function_t::k_none},
|
||||
@ -686,8 +686,8 @@ void Sub::default_js_buttons()
|
||||
{JSButton::button_function_t::k_mount_center, JSButton::button_function_t::k_none},
|
||||
|
||||
{JSButton::button_function_t::k_input_hold_set, JSButton::button_function_t::k_none},
|
||||
{JSButton::button_function_t::k_mount_tilt_down, JSButton::button_function_t::k_mount_pan_left},
|
||||
{JSButton::button_function_t::k_mount_tilt_up, JSButton::button_function_t::k_mount_pan_right},
|
||||
{JSButton::button_function_t::k_mount_tilt_up, JSButton::button_function_t::k_servo_2_max_momentary},
|
||||
{JSButton::button_function_t::k_mount_tilt_down, JSButton::button_function_t::k_servo_2_min_momentary},
|
||||
{JSButton::button_function_t::k_gain_inc, JSButton::button_function_t::k_trim_pitch_dec},
|
||||
|
||||
{JSButton::button_function_t::k_gain_dec, JSButton::button_function_t::k_trim_pitch_inc},
|
||||
|
Loading…
Reference in New Issue
Block a user