Skip to content

Commit

Permalink
Sub: copy 4.1 parm defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
clydemcqueen authored and Williangalvani committed Nov 30, 2023
1 parent 20b56bb commit ce824b7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions ArduSub/Parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static const struct AP_Param::defaults_table_struct defaults_table[] = {
AP_Arming::ARMING_CHECK_BATTERY},
{ "CIRCLE_RATE", 2.0f},
{ "ATC_ACCEL_Y_MAX", 110000.0f},
{ "ATC_RATE_Y_MAX", 180.0f},
{ "RC3_TRIM", 1100},
{ "COMPASS_OFFS_MAX", 1000},
{ "INS_GYR_CAL", 0},
Expand All @@ -368,4 +369,24 @@ static const struct AP_Param::defaults_table_struct defaults_table[] = {
{ "RC8_OPTION", 213}, // MOUNT1_PITCH
{ "MOT_PWM_MIN", 1100},
{ "MOT_PWM_MAX", 1900},
{ "PSC_JERK_Z", 50.0f},
{ "WPNAV_SPEED", 100.0f},
{ "PILOT_SPEED_UP", 100.0f},
{ "PSC_VELXY_P", 6.0f},
{ "EK3_SRC1_VELZ", 0},
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR
{ "BARO_PROBE_EXT", 0},
{ "BATT_MONITOR", 4},
{ "BATT_CAPACITY", 0},
{ "LEAK1_PIN", 27},
{ "SCHED_LOOP_RATE", 200},
{ "SERVO13_FUNCTION", 59}, // k_rcin9, lights 1
{ "SERVO14_FUNCTION", 60}, // k_rcin10, lights 2
{ "SERVO16_FUNCTION", 7}, // k_mount_tilt
{ "SERVO16_REVERSED", 1},
#else
{ "BARO_PROBE_EXT", 768},
{ "SERVO9_FUNCTION", 59}, // k_rcin9, lights 1
{ "SERVO10_FUNCTION", 7}, // k_mount_tilt
#endif
};
4 changes: 3 additions & 1 deletion Tools/autotest/ardusub.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,14 @@ def DiveMission(self):
def GripperMission(self):
'''Test gripper mission items'''
self.load_mission("sub-gripper-mission.txt")
self.change_mode('GUIDED')
self.wait_ready_to_arm()
self.arm_vehicle()
self.change_mode('AUTO')
self.wait_waypoint(1, 2, max_dist=5)
self.wait_statustext("Gripper Grabbed", timeout=60)
self.wait_waypoint(1, 4, max_dist=5)
self.wait_statustext("Gripper Released", timeout=60)
self.wait_waypoint(1, 6, max_dist=5)
self.disarm_vehicle()

def SET_POSITION_TARGET_GLOBAL_INT(self):
Expand Down

0 comments on commit ce824b7

Please sign in to comment.