Skip to content

Commit 978497b

Browse files
committed
FEATURE: Added Gazebo Iris Model with gimbal
Thanks to khanasif786 Asif Khan
1 parent b7a79ac commit 978497b

File tree

53 files changed

+2253
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2253
-0
lines changed

vehicle_templates/ArduCopter/GazeboIrisWithTargetFollow/00_default.param

Lines changed: 1484 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
INS_LOG_BAT_MASK,3 # the Matek H743 fligth controller only has two IMUs
2+
INS_TCAL1_ENABLE,2 # Activates the temperature calibration for IMU 1 at the next start
3+
INS_TCAL1_TMAX,60 # our H7 processor acts as a heater and heats up the board to almost 60 deg
4+
INS_TCAL2_ENABLE,2 # Activates the temperature calibration for IMU 2 at the next start
5+
INS_TCAL2_TMAX,60 # our H7 processor acts as a heater and heats up the board to almost 60 deg
6+
LOG_BITMASK,524416 # Only for IMU and Raw-IMU
7+
LOG_DISARMED,1 # Gather data for the offline IMU temperature calibration while the FC is disarmed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
INS_TCAL1_ACC1_X,115.946591
2+
INS_TCAL1_ACC1_Y,498.256973
3+
INS_TCAL1_ACC1_Z,-381.446152
4+
INS_TCAL1_ACC2_X,-22.931569
5+
INS_TCAL1_ACC2_Y,13.578689
6+
INS_TCAL1_ACC2_Z,19.36129
7+
INS_TCAL1_ACC3_X,-0.601406
8+
INS_TCAL1_ACC3_Y,0.213799
9+
INS_TCAL1_ACC3_Z,0.011622
10+
INS_TCAL1_ENABLE,0
11+
INS_TCAL1_GYR1_X,-32.634221
12+
INS_TCAL1_GYR1_Y,79.655005
13+
INS_TCAL1_GYR1_Z,-151.124203
14+
INS_TCAL1_GYR2_X,-0.611429
15+
INS_TCAL1_GYR2_Y,-2.040989
16+
INS_TCAL1_GYR2_Z,1.23833
17+
INS_TCAL1_GYR3_X,-0.009728
18+
INS_TCAL1_GYR3_Y,0.019492
19+
INS_TCAL1_GYR3_Z,0.00141
20+
INS_TCAL1_TMAX,56
21+
INS_TCAL1_TMIN,-14.6
22+
INS_TCAL2_ACC1_X,-1088.4156
23+
INS_TCAL2_ACC1_Y,806.840522
24+
INS_TCAL2_ACC1_Z,327.521202
25+
INS_TCAL2_ACC2_X,-13.630366
26+
INS_TCAL2_ACC2_Y,6.347961
27+
INS_TCAL2_ACC2_Z,9.967253
28+
INS_TCAL2_ACC3_X,-0.376738
29+
INS_TCAL2_ACC3_Y,0.002642
30+
INS_TCAL2_ACC3_Z,-0.065861
31+
INS_TCAL2_ENABLE,0
32+
INS_TCAL2_GYR1_X,-44.455146
33+
INS_TCAL2_GYR1_Y,-8.833006
34+
INS_TCAL2_GYR1_Z,88.004539
35+
INS_TCAL2_GYR2_X,1.435061
36+
INS_TCAL2_GYR2_Y,-0.204453
37+
INS_TCAL2_GYR2_Z,-2.086232
38+
INS_TCAL2_GYR3_X,-0.048141
39+
INS_TCAL2_GYR3_Y,-0.002373
40+
INS_TCAL2_GYR3_Z,-0.028351
41+
INS_TCAL2_TMAX,56.5
42+
INS_TCAL2_TMIN,-13.3
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AHRS_ORIENTATION,0 # Point forward in the direction of travel
2+
LOG_DISARMED,0 # Log disarmed was only required for offline IMU temperature calibration
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ARMING_RUDDER,2 # We find it safer to use only a switch to arm instead of through rudder inputs
2+
BRD_ALT_CONFIG,0
3+
RC_OPTIONS,32 # Enables Crossfire Telemetry
4+
RC_PROTOCOLS,1 # Selected in the component editor
5+
RC6_OPTION,212
6+
RC7_OPTION,213
7+
RC8_OPTION,214
8+
RC9_OPTION,0
9+
RSSI_TYPE,0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
BRD_SER1_RTSCTS,1 # we have RTS/CTS pins connected
2+
SERIAL1_BAUD,57 # The MAVLink over ESP32 telemetry
3+
SERIAL1_PROTOCOL,2 # Use MAVLink 2 for telemetry
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ATC_RAT_PIT_SMAX,0 # limit the slew rate to prevent possible ESC desync - https://ardupilot.org/copter/docs/common-servo-limit-cycle-detection.html
2+
ATC_RAT_RLL_SMAX,0 # limit the slew rate to prevent possible ESC desync - https://ardupilot.org/copter/docs/common-servo-limit-cycle-detection.html
3+
ATC_RAT_YAW_SMAX,0 # limit the slew rate to prevent possible ESC desync - https://ardupilot.org/copter/docs/common-servo-limit-cycle-detection.html
4+
MOT_HOVER_LEARN,2 # So that it can tune the throttle controller on 20_throttle_controller.param file
5+
MOT_PWM_MAX,2000
6+
MOT_PWM_MIN,1000
7+
MOT_PWM_TYPE,0 # Specified in component editor window
8+
MOT_SPOOL_TIME,0.5 # left at default because copter is small
9+
NTF_BUZZ_TYPES,5 # the 4-in-1 ESC uses this
10+
NTF_LED_TYPES,123079 # Built-in LED, NCP5623 External (Holybro F9P), Neopixel (Matek H743 slim v3), and DShot (4-in-1 ESC)
11+
PSC_ACCZ_SMAX,0 # limit the slew rate to prevent possible ESC desync - https://ardupilot.org/copter/docs/common-servo-limit-cycle-detection.html
12+
SERIAL5_BAUD,57 # bi-directional DShot telemetry data rate from T-Motor F45 4in1 ESC V2
13+
SERIAL5_PROTOCOL,-1 # bi-directional DShot telemetry pin is connected to SERIAL5
14+
SERVO_BLH_AUTO,1 # Enables BLHeli pass-thru
15+
SERVO_BLH_BDMASK,15 # All four of our ESC support bi-directional DShot
16+
SERVO_BLH_POLES,3 # Specified in component editor window
17+
SERVO_BLH_TRATE,5 # Set to a low value because the RPM telemetry uses bi-directional DShot telemetry instead of this UART telemetry
18+
SERVO_DSHOT_ESC,0 # BLHeli32
19+
SERVO_DSHOT_RATE,0 # Sends DShot control signals to the ESC twice per control loop
20+
SERVO1_MAX,1900 # Use the full available 1000-2000 DShot range
21+
SERVO1_MIN,1100 # Use the full available 1000-2000 DShot range
22+
SERVO1_TRIM,1500 # Use the full available 1000-2000 DShot range
23+
SERVO13_FUNCTION,0 # For matek H743Slim v3 board
24+
SERVO2_MAX,1900 # Use the full available 1000-2000 DShot range
25+
SERVO2_MIN,1100 # Use the full available 1000-2000 DShot range
26+
SERVO2_TRIM,1500 # Use the full available 1000-2000 DShot range
27+
SERVO3_MAX,1900 # Use the full available 1000-2000 DShot range
28+
SERVO3_MIN,1100 # Use the full available 1000-2000 DShot range
29+
SERVO3_TRIM,1500 # Use the full available 1000-2000 DShot range
30+
SERVO4_MAX,1900 # Use the full available 1000-2000 DShot range
31+
SERVO4_MIN,1100 # Use the full available 1000-2000 DShot range
32+
SERVO4_TRIM,1500 # Use the full available 1000-2000 DShot range
33+
TKOFF_RPM_MIN,0 # Our motors should idle at around 1400 RPM, see https://ardupilot.org/copter/docs/tkoff-rpm-min.html
34+
TKOFF_SLEW_TIME,2 # left at default because copter is small
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
BATT_AMP_PERVLT,17 # new calibrated value for Mamba F45_128k 4in1 ESC
2+
BATT_ARM_VOLT,15.7 # Don’t allow arming below this voltage
3+
BATT_CAPACITY,1800 # Total battery capacity specified in the component editor
4+
BATT_CRT_MAH,0 # When only 450mAh out of the total 1800mAh remain, trigger critical failsafe
5+
BATT_CRT_VOLT,14.2 # (Critical voltage + 0.0) x no. of cells
6+
BATT_FS_CRT_ACT,1 # Land ASAP
7+
BATT_FS_LOW_ACT,2 # Return and land at home or rally point
8+
BATT_FS_VOLTSRC,0 # Let the firmware handle the nasty business of variable and battery dependent internal resistance
9+
BATT_LOW_MAH,0 # When only 450mAh out of the total 1800mAh remain, trigger low failsafe
10+
BATT_LOW_VOLT,14.4 # (Low voltage + 0.0) x no. of cells
11+
BATT_MONITOR,4 # Selected in component editor window
12+
BATT_VOLT_MULT,10.1 # Use a power source with a voltage close to BATT_LOW_VOLT measure with a calibrated voltimeter and adapt this parameter so that the telemetry voltage reading matches it
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
BATT2_AMP_PERVLT,17.73 # calibrated using batt charger
2+
BATT2_ARM_VOLT,15 # In our build this is a redundant monitor for batt1 so == BATT_ARM_VOLT
3+
BATT2_CAPACITY,1800 # In our build this is a redundant monitor for batt1 so == BATT_CAPACITY
4+
BATT2_CRT_MAH,450 # In our build this is a redundant monitor for batt1 so == BATT_CRT_MAH
5+
BATT2_CRT_VOLT,14 # In our build this is a redundant monitor for batt1 so == BATT_CRT_VOLT
6+
BATT2_CURR_PIN,7
7+
BATT2_FS_CRT_ACT,1 # flying indoors, just land ASAP, no need to hit the ceiling while doing RTL
8+
BATT2_FS_LOW_ACT,1 # flying indoors, just land ASAP, no need to hit the ceiling while doing RTL
9+
BATT2_FS_VOLTSRC,1 # In our build this is a redundant monitor for batt1 so == BATT_FS_VOLTSRC
10+
BATT2_LOW_MAH,600 # In our build this is a redundant monitor for batt1 so == BATT_LOW_MAH
11+
BATT2_LOW_VOLT,14.4 # In our build this is a redundant monitor for batt1 so == BATT_LOW_VOLT
12+
BATT2_MONITOR,0
13+
BATT2_VOLT_MULT,228.342 # Use a power source with a voltage close to BATT2_LOW_VOLT measure with a calibrated voltimeter and adapt this parameter so that the telemetry voltage reading matches it
14+
BATT2_VOLT_PIN,18
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BRD_SAFETY_DEFLT,0 # Matek H743 Slim has no safety switch
2+
GPS_GNSS_MODE,7 # limit the constalations to ensure an update rate higher than 5Hz
3+
GPS_POS1_X,0.056 # HX-CH7604A GNSS antenna pahse center location relative to CG
4+
GPS_POS1_Y,0 # HX-CH7604A GNSS antenna pahse center location relative to CG
5+
GPS_POS1_Z,-0.07 # HX-CH7604A GNSS antenna pahse center location relative to CG
6+
GPS_TYPE,2 # Defined in component editor
7+
SERIAL3_PROTOCOL,5 # GNSS receiver is connected to serial3
8+
WPNAV_RADIUS,200 # we have a good GNSS receiver so we can afford to fly precisely

0 commit comments

Comments
 (0)