Skip to content

Commit

Permalink
IMPROVEMENT: this is work-in-progress from Allister
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Sep 2, 2024
1 parent 955ec66 commit db31d1a
Show file tree
Hide file tree
Showing 56 changed files with 187 additions and 305 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
BRD_HEAT_TARG,65 # Reasonable for most places on this planet
INS_LOG_BAT_MASK,7 # Calculate IMU calibration for all IMUs, irrespective of their usage in a future step. Saves the trouble of recalibrating an inactive IMU if you later decide to activate it
INS_LOG_BAT_MASK,3 # Calculate IMU calibration for all IMUs, irrespective of their usage in a future step. Saves the trouble of recalibrating an inactive IMU if you later decide to activate it
INS_TCAL1_ENABLE,2 # Activates the temperature calibration for IMU 1 at the next start
INS_TCAL1_TMAX,65 # CubeOrange has an heater that heats up the board to almost 70 deg
INS_TCAL1_TMAX,60 # Pixhawk 6c Mini has an heater that heats up the board to almost 65 deg
INS_TCAL2_ENABLE,2 # Activates the temperature calibration for IMU 2 at the next start
INS_TCAL2_TMAX,65 # CubeOrange has an heater that heats up the board to almost 70 deg
INS_TCAL2_TMAX,60 # Pixhawk 6c Mini has an heater that heats up the board to almost 65 deg
INS_TCAL3_ENABLE,2 # Activates the temperature calibration for IMU 3 at the next start
LOG_BITMASK,524416 # Only for IMU and Raw-IMU
LOG_DISARMED,1 # Gather data for the offline IMU temperature calibration while the FC is disarmed
2 changes: 1 addition & 1 deletion vehicle_templates/Heli/Allister/04_board_orientation.param
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
AHRS_ORIENTATION,4 # Point forward in the direction of travel
AHRS_ORIENTATION,4 # Pixhawk 6C Mini must be rotated so the servo connections can fit directly. Makes a cleaner build.
BRD_HEAT_TARG,45 # Reset to default after offline IMU temperature calibration
LOG_DISARMED,0 # Log disarmed was only required for offline IMU temperature calibration
6 changes: 3 additions & 3 deletions vehicle_templates/Heli/Allister/05_remote_controller.param
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARMING_RUDDER,2
RC_OPTIONS,800
ARMING_RUDDER,2 # Use Rudder Arming/disarming
RC_OPTIONS,800 # Throttle at zero. Passthrough telemetry for Yaapu. Supress the mode messages.
RC_PROTOCOLS,1 # Selected in the component editor
RC10_OPTION,0
RC6_OPTION,0
RC7_OPTION,32
RC7_OPTION,32 # Motor Interlock required to get blades turning.
RC8_OPTION,0
RC9_OPTION,0
RSSI_TYPE,3
6 changes: 6 additions & 0 deletions vehicle_templates/Heli/Allister/07_Heli_airframe.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FRAME_CLASS,6
FRAME_TYPE,1
FS_CRASH_CHECK,0 # Crash check is unreliable in Trad-Heli
H_FLYBAR_MODE,0
H_HOVER_LEARN,2
H_OPTIONS,1
22 changes: 0 additions & 22 deletions vehicle_templates/Heli/Allister/07_esc.param

This file was deleted.

25 changes: 25 additions & 0 deletions vehicle_templates/Heli/Allister/08_Swasplate.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
H_SW_TYPE,3
SERVO1_FUNCTION,33 # Swashplate Front Left
SERVO1_REVERSED,1 # Required for OMP M4
SERVO2_FUNCTION,34 # Swashplate Front Right
SERVO2_REVERSED,1 # Required for OMP M4
SERVO3_FUNCTION,35 # Swashplate Aft
SERVO3_REVERSED,1 # Required for OMP M4

H_COL_ANG_MAX,12 # Non-aerobatic flying
H_COL_ANG_MIN,-5 # Non-aerobatic flying
H_COL_HOVER,0.6 # Starting point, will be set during Alt-hold hover.
H_COL_LAND_MIN,-2
H_COL_MAX,1640 # Starting point, to be checked during rigging.
H_COL_MIN,1400 # Starting point, to be checked during rigging.
H_COL_ZERO_THRST,0 # Symetrical blades
H_CYC_MAX,1500 # Starting point, to be checked during rigging.
SERVO1_MAX,2000 # Operating Pulse Width:1050-1950us(Fixed or cannot be Programmed)
SERVO1_MIN,1000 # Operating Pulse Width:1050-1950us(Fixed or cannot be Programmed)
SERVO1_TRIM,1500 # Adjust all linkages so the swasplate is level at 1500.
SERVO2_MAX,2000 # Operating Pulse Width:1050-1950us(Fixed or cannot be Programmed)
SERVO2_MIN,1000 # Operating Pulse Width:1050-1950us(Fixed or cannot be Programmed)
SERVO2_TRIM,1500 # Adjust all linkages so the swasplate is level at 1500.
SERVO3_MAX,2000 # Operating Pulse Width:1050-1950us(Fixed or cannot be Programmed)
SERVO3_MIN,1000 # Operating Pulse Width:1050-1950us(Fixed or cannot be Programmed)
SERVO3_TRIM,1500 # Adjust all linkages so the swasplate is level at 1500.
12 changes: 0 additions & 12 deletions vehicle_templates/Heli/Allister/08_batt1.param

This file was deleted.

5 changes: 5 additions & 0 deletions vehicle_templates/Heli/Allister/09_Tailrotor.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
H_TAIL_TYPE,0
SERVO4_FUNCTION,36 # Tailrotor Servo
SERVO4_MAX,885 # Highspeed Tailrotor Servo
SERVO4_MIN,620 # Highspeed Tailrotor Servo
SERVO4_TRIM,750 # Highspeed Tailrotor Servo. Adjust mechanical tirm so that the tirm value represents neutral pitch.
11 changes: 11 additions & 0 deletions vehicle_templates/Heli/Allister/10_esc.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
H_RSC_CRITICAL,80
H_RSC_IDLE,0
H_RSC_MODE,2
H_RSC_RAMP_TIME,3
H_RSC_RUNUP_TIME,4
H_RSC_SETPOINT,50 # 2000 RPM on the OMP M4 ESC
H_RSC_SLEWRATE,0
SERVO5_FUNCTION,31 # Heli RSC (ESC)
SERVO5_MAX,1900
SERVO5_MIN,1100
TKOFF_SLEW_TIME,2
4 changes: 4 additions & 0 deletions vehicle_templates/Heli/Allister/11_ESC_Calibration.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RC3_MAX,1900 # Set RC 3 to match the MIN/MAX range of the HeliRSC Output
RC3_MIN,1100 # Set RC 3 to match the MIN/MAX range of the HeliRSC Output
SERVO5_FUNCTION,53 # RC passthrough temporarily for ESC calibration.
SERVO8_FUNCTION,31 # temporary as default for HeliRSC. This can be any serial port without a connection.
15 changes: 0 additions & 15 deletions vehicle_templates/Heli/Allister/11_initial_atc.param

This file was deleted.

4 changes: 4 additions & 0 deletions vehicle_templates/Heli/Allister/12_ESC_Post_calibration.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SERVO8_FUNCTION, 0 #No longer needed
SERVO5_FUNCTION, 31 #HeliRSC
RC3_MAX, 2011 #RC3 calibration values
RC3_MIN, 988 #RC3 calibration values
12 changes: 12 additions & 0 deletions vehicle_templates/Heli/Allister/13_batt1.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BATT_AMP_PERVLT,36.360001
BATT_ARM_VOLT,23.9 # Don’t allow arming below this voltage
BATT_CAPACITY,2000 # Total battery capacity specified in the component editor
BATT_CRT_MAH,0
BATT_CRT_VOLT,21.6 # (Critical voltage + 0.0) x no. of cells
BATT_FS_CRT_ACT,1 # Land ASAP
BATT_FS_LOW_ACT,2 # Return and land at home or rally point
BATT_FS_VOLTSRC,0
BATT_LOW_MAH,0
BATT_LOW_VOLT,22.2 # (Low voltage + 0.0) x no. of cells
BATT_MONITOR,4
BATT_VOLT_MULT,18.454201
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BRD_SAFETY_DEFLT,0 # CubeOrange has no safety switch
BRD_SAFETY_DEFLT,0 # Pixhawk has no safety switch
CAN_D1_PROTOCOL,1 # set virtual driver of CAN1 to DRONECAN for Here3
CAN_P1_DRIVER,0 # Enable CAN1 bus for Here3
GPS_GNSS_MODE,0 # limit the constellations to ensure an update rate higher than 5Hz
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
AHRS_TRIM_X,-0.033033
AHRS_TRIM_Y,-0.023843
ATC_ACCEL_P_MAX,110000
ATC_ACCEL_R_MAX,110000
ATC_ACCEL_Y_MAX,80000
ATC_RAT_PIT_FLTD,0 # INS_GYRO_FILTER / 2
ATC_RAT_PIT_FLTT,20 # INS_GYRO_FILTER / 2
ATC_RAT_RLL_FLTD,0 # INS_GYRO_FILTER / 2
ATC_RAT_RLL_FLTT,20 # INS_GYRO_FILTER / 2
ATC_RAT_YAW_FLTE,20
ATC_RAT_YAW_FLTT,20 # INS_GYRO_FILTER / 2

COMPASS_EXTERNAL,1
COMPASS_ORIENT,6
COMPASS_PRIO1_ID,658961
Expand All @@ -18,14 +10,15 @@ FENCE_ACTION,1
FENCE_ALT_MAX,100
FENCE_ENABLE,1
FENCE_RADIUS,300
FLTMODE1,0
FLTMODE2,2
FLTMODE3,5
FLTMODE4,5
FLTMODE5,15
FLTMODE6,6
FRAME_CLASS,6
FRAME_TYPE,1
FLTMODE1,0 # Stabilized
FLTMODE2,2 # Alt-Hold
FLTMODE3,5 # Loiter
FLTMODE4,5 # Loiter
FLTMODE5,15 # Autotune
FLTMODE6,6 # RTL



INS_ACC1_CALTEMP,44.806763
INS_ACC2_CALTEMP,47
INS_ACC2SCAL_X,0.982365
Expand Down Expand Up @@ -76,7 +69,4 @@ RC8_TRIM,1500
RC9_MAX,1900
RC9_MIN,1100
RC9_TRIM,1500
SERVO1_FUNCTION,33
SERVO2_FUNCTION,34
SERVO3_FUNCTION,35
SERVO4_FUNCTION,36

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ RTL_ALT,2000
RTL_LOIT_TIME,5000
SCHED_LOOP_RATE,400
SCR_ENABLE,1 # Use lua scripting for VTOL-Quicktune, MagFit automation and Windspeed Estimation automation
SERIAL7_PROTOCOL,2 # Do not use CubeOrange ADSB receiver
SERIAL7_PROTOCOL,2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
INS_LOG_BAT_CNT,1024 # the default of 1024 causes some problems with https://firmware.ardupilot.org/Tools/WebTools/FilterReview/
INS_LOG_BAT_MASK,3 # Will use 2 of 3 IMU
INS_LOG_BAT_MASK,3 # Log IMU 1 and 2
INS_LOG_BAT_OPT,4 # Logs measured data both before and after the filters for Filter Review Webtool usage
INS_RAW_LOG_OPT,0
LOG_BITMASK,2242524 # Logs Notch filter data and other control signals
Expand Down
10 changes: 0 additions & 10 deletions vehicle_templates/Heli/Allister/18_notch_filter_setup.param

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
AHRS_TRIM_Y,-0.023843 # To be adjusted so heli does not drift longitudinaly
ATC_HOVR_ROL_TRM,350 # To be adjusted so heli does not drift laterally
SERVO1_TRIM,1500 # To be adjusted if i-term is Stabilized at ATC_RAT_xxx_ILMI
SERVO2_TRIM,1500 # To be adjusted if i-term is Stabilized at ATC_RAT_xxx_ILMI
SERVO3_TRIM,1480 # To be adjusted if i-term is Stabilized at ATC_RAT_xxx_ILMI
10 changes: 10 additions & 0 deletions vehicle_templates/Heli/Allister/20_notch_filter_setup.param
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
INS_FAST_SAMPLE,3
INS_GYRO_RATE,1
INS_HNTCH_ATT,40 # this is just a hunch, it must be improved after the first flight (by the next file)
INS_HNTCH_BW,10 # this is just a hunch, it must be improved after the first flight (by the next file)
INS_HNTCH_ENABLE,1 # Use the first notch filter to filter the noise created by the motors/propellers
INS_HNTCH_FREQ,33.3 # Rotor RPM (2000)
INS_HNTCH_HMNCS,3 # First and Second harmonics.
INS_HNTCH_MODE,0 # Fixed filter as Heli Rotor RPM is fixed.
INS_HNTCH_OPTS,0
INS_HNTCH_REF,0
3 changes: 0 additions & 3 deletions vehicle_templates/Heli/Allister/20_throttle_controller.param

This file was deleted.

2 changes: 0 additions & 2 deletions vehicle_templates/Heli/Allister/21_ekf_config.param

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ INS_HNTCH_FM_RAT,0.9 # Allowed undercutting of the base frequency of the first
INS_HNTCH_FREQ,33.299999 # the minimum frequency that the motors are expected to operate at
INS_HNTCH_HMNCS,3 # the motors produce secondary harmonics on this vehicle
INS_HNTCH_OPTS,0
INS_HNTCH_REF,0 # MOT_THST_HOVER * SQUARE(min_freq / hover_freq)
INS_HNTCH_REF,0
14 changes: 0 additions & 14 deletions vehicle_templates/Heli/Allister/22_quick_tune_setup.param

This file was deleted.

10 changes: 0 additions & 10 deletions vehicle_templates/Heli/Allister/23_quick_tune_results.param

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ATC_RAT_PIT_FF, 0.109717
ATC_RAT_RLL_FF, 0.128279

This file was deleted.

14 changes: 0 additions & 14 deletions vehicle_templates/Heli/Allister/26_quick_tune_setup.param

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ATC_RAT_PIT_D,0.000267
ATC_RAT_PIT_I,0.054859
ATC_RAT_PIT_P,0.028604
10 changes: 0 additions & 10 deletions vehicle_templates/Heli/Allister/27_quick_tune_results.param

This file was deleted.

This file was deleted.

Loading

0 comments on commit db31d1a

Please sign in to comment.