Tools: convert ARSPD_FBW_MIN/MAX to AIRSPEED_MIN and AIRSPEED_MAX

This commit is contained in:
Andrew Tridgell 2024-01-18 16:37:42 +11:00
parent 912e2f224b
commit 863f25e645
23 changed files with 45 additions and 45 deletions

View File

@ -1,7 +1,7 @@
ALT_HOLD_RTL 6000 ALT_HOLD_RTL 6000
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_FBW_MAX 17 AIRSPEED_MAX 17
ARSPD_FBW_MIN 12 AIRSPEED_MIN 12
ARSPD_PSI_RANGE 0.05 ARSPD_PSI_RANGE 0.05
ARSPD_TUBE_ORDR 2 ARSPD_TUBE_ORDR 2
ARSPD_USE 1 ARSPD_USE 1

View File

@ -1,8 +1,8 @@
# parameters for Foxtech AYK320 # parameters for Foxtech AYK320
# airspeed # airspeed
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 18 AIRSPEED_MIN 18
AIRSPEED_CRUISE 23.00 AIRSPEED_CRUISE 23.00
TRIM_THROTTLE 60 TRIM_THROTTLE 60

View File

@ -7,8 +7,8 @@
# the rear two elevons are setup for roll only (ailerons) # the rear two elevons are setup for roll only (ailerons)
# setup airspeed range # setup airspeed range
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 22 AIRSPEED_MIN 22
AIRSPEED_CRUISE 27.00 AIRSPEED_CRUISE 27.00
# fixed wing limits # fixed wing limits

View File

@ -3,8 +3,8 @@
# https://www.foxtechfpv.com/foxtech-great-shark-330-vtol.html # https://www.foxtechfpv.com/foxtech-great-shark-330-vtol.html
# airspeed # airspeed
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 18 AIRSPEED_MIN 18
AIRSPEED_CRUISE 23.00 AIRSPEED_CRUISE 23.00
TRIM_THROTTLE 60 TRIM_THROTTLE 60

View File

@ -3,8 +3,8 @@
# http://myflydream.com/products/c-0/369.html # http://myflydream.com/products/c-0/369.html
# airspeed # airspeed
ARSPD_FBW_MAX 29 AIRSPEED_MAX 29
ARSPD_FBW_MIN 16 AIRSPEED_MIN 16
AIRSPEED_CRUISE 20.00 AIRSPEED_CRUISE 20.00
TRIM_THROTTLE 52 TRIM_THROTTLE 52

View File

@ -22,8 +22,8 @@ INS_HNTCH_REF 0.26
# airspeed # airspeed
AIRSPEED_CRUISE 23.00 AIRSPEED_CRUISE 23.00
ARSPD_FBW_MAX 30 AIRSPEED_MAX 30
ARSPD_FBW_MIN 15 AIRSPEED_MIN 15
# limits # limits
LIM_PITCH_MAX 2000 LIM_PITCH_MAX 2000

View File

@ -25,8 +25,8 @@ INS_HNTCH_REF 0.245000
# airspeed # airspeed
AIRSPEED_CRUISE 23.00 AIRSPEED_CRUISE 23.00
ARSPD_FBW_MAX 28 AIRSPEED_MAX 28
ARSPD_FBW_MIN 18 AIRSPEED_MIN 18
# FW pitch tuning # FW pitch tuning
PTCH_RATE_D 0.021381 PTCH_RATE_D 0.021381

View File

@ -3,8 +3,8 @@
# http://www.sparkletech.hk/%E9%B9%B0%E7%9C%BC-%E6%97%A0%E4%BA%BA%E6%9C%BA/electric-power/eagle-plus-vtol/ # http://www.sparkletech.hk/%E9%B9%B0%E7%9C%BC-%E6%97%A0%E4%BA%BA%E6%9C%BA/electric-power/eagle-plus-vtol/
# airspeed # airspeed
ARSPD_FBW_MAX 31 AIRSPEED_MAX 31
ARSPD_FBW_MIN 22 AIRSPEED_MIN 22
AIRSPEED_CRUISE 24.00 AIRSPEED_CRUISE 24.00
SCALING_SPEED 20 SCALING_SPEED 20
TRIM_THROTTLE 55 TRIM_THROTTLE 55

View File

@ -6,8 +6,8 @@ USE_REV_THRUST,1075
WP_RADIUS,400 WP_RADIUS,400
WP_LOITER_RAD,1000 WP_LOITER_RAD,1000
RTL_RADIUS,500 RTL_RADIUS,500
ARSPD_FBW_MIN,30 AIRSPEED_MIN,30
ARSPD_FBW_MAX,65 AIRSPEED_MAX,65
TERRAIN_FOLLOW,1 TERRAIN_FOLLOW,1
THR_MIN,-25 THR_MIN,-25
THR_SLEWRATE,30 THR_SLEWRATE,30

View File

@ -2922,8 +2922,8 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
trim_airspeed = m.airspeed trim_airspeed = m.airspeed
self.progress("Using trim_airspeed=%f" % (trim_airspeed,)) self.progress("Using trim_airspeed=%f" % (trim_airspeed,))
min_airspeed = self.get_parameter("ARSPD_FBW_MIN") min_airspeed = self.get_parameter("AIRSPEED_MIN")
max_airspeed = self.get_parameter("ARSPD_FBW_MAX") max_airspeed = self.get_parameter("AIRSPEED_MAX")
if trim_airspeed > max_airspeed: if trim_airspeed > max_airspeed:
raise NotAchievedException("trim airspeed > max_airspeed (%f>%f)" % raise NotAchievedException("trim airspeed > max_airspeed (%f>%f)" %

View File

@ -8,8 +8,8 @@ SERVO2_MAX = 2000
SERVO2_MIN = 1000 SERVO2_MIN = 1000
AHRS_EKF_TYPE 2 AHRS_EKF_TYPE 2
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 6 AIRSPEED_MIN 6
ARSPD_USE 1 ARSPD_USE 1
AUTOTUNE_LEVEL 8 AUTOTUNE_LEVEL 8
COMPASS_OFS2_X -0.420265 COMPASS_OFS2_X -0.420265

View File

@ -1,6 +1,6 @@
ALT_HOLD_RTL 20000.0000 ALT_HOLD_RTL 20000.0000
ARSPD_FBW_MAX 80.0000 AIRSPEED_MAX 80.0000
ARSPD_FBW_MIN 25.0000 AIRSPEED_MIN 25.0000
FBWB_CLIMB_RATE 5.0000 FBWB_CLIMB_RATE 5.0000
LAND_FLARE_SEC 2.0000 LAND_FLARE_SEC 2.0000
LIM_PITCH_MAX 2000.0000 LIM_PITCH_MAX 2000.0000

View File

@ -11,8 +11,8 @@ LAND_DISARMDELAY 3
LAND_PITCH_CD 100 LAND_PITCH_CD 100
LAND_FLARE_SEC 3 LAND_FLARE_SEC 3
ARSPD_USE 1 ARSPD_USE 1
ARSPD_FBW_MAX 30 AIRSPEED_MAX 30
ARSPD_FBW_MIN 10 AIRSPEED_MIN 10
KFF_RDDRMIX 0.5 KFF_RDDRMIX 0.5
THR_MAX 100 THR_MAX 100
RC2_REVERSED 1 RC2_REVERSED 1

View File

@ -1,5 +1,5 @@
ARSPD_FBW_MAX 20 AIRSPEED_MAX 20
ARSPD_FBW_MIN 8 AIRSPEED_MIN 8
FLIGHT_OPTIONS 2 FLIGHT_OPTIONS 2

View File

@ -5,8 +5,8 @@ LIM_PITCH_MIN -2000
LIM_PITCH_MAX 2500 LIM_PITCH_MAX 2500
LIM_ROLL_CD 6500 LIM_ROLL_CD 6500
ARSPD_USE 1 ARSPD_USE 1
ARSPD_FBW_MAX 30 AIRSPEED_MAX 30
ARSPD_FBW_MIN 10 AIRSPEED_MIN 10
THR_MAX 100 THR_MAX 100
KFF_RDDRMIX 1 KFF_RDDRMIX 1
RC1_MAX 2000 RC1_MAX 2000

View File

@ -1,7 +1,7 @@
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_TYPE 0 ARSPD_TYPE 0
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 6 AIRSPEED_MIN 6
AUTOTUNE_LEVEL 8 AUTOTUNE_LEVEL 8
COMPASS_OFS2_X -0.420265 COMPASS_OFS2_X -0.420265
COMPASS_OFS2_Y -0.726942 COMPASS_OFS2_Y -0.726942

View File

@ -1,7 +1,7 @@
AHRS_EKF_TYPE 2 AHRS_EKF_TYPE 2
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 6 AIRSPEED_MIN 6
ARSPD_USE 1 ARSPD_USE 1
AUTOTUNE_LEVEL 8 AUTOTUNE_LEVEL 8
COMPASS_OFS2_X -0.420265 COMPASS_OFS2_X -0.420265

View File

@ -1,7 +1,7 @@
AHRS_EKF_TYPE 2 AHRS_EKF_TYPE 2
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 6 AIRSPEED_MIN 6
ARSPD_USE 1 ARSPD_USE 1
AUTOTUNE_LEVEL 8 AUTOTUNE_LEVEL 8
COMPASS_OFS2_X -0.420265 COMPASS_OFS2_X -0.420265

View File

@ -1,7 +1,7 @@
AHRS_EKF_TYPE 2 AHRS_EKF_TYPE 2
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 13 AIRSPEED_MIN 13
ARSPD_USE 1 ARSPD_USE 1
AUTOTUNE_LEVEL 8 AUTOTUNE_LEVEL 8
COMPASS_OFS2_X -0.420265 COMPASS_OFS2_X -0.420265

View File

@ -1,6 +1,6 @@
ARMING_RUDDER 2 ARMING_RUDDER 2
ARSPD_FBW_MAX 35 AIRSPEED_MAX 35
ARSPD_FBW_MIN 13 AIRSPEED_MIN 13
ARSPD_USE 1 ARSPD_USE 1
AUTOTUNE_LEVEL 8 AUTOTUNE_LEVEL 8
COMPASS_OFS2_X -0.420265 COMPASS_OFS2_X -0.420265

View File

@ -26,8 +26,8 @@ ARMING_REQUIRE,0
ARMING_RUDDER,1 ARMING_RUDDER,1
ARSPD_AUTOCAL,0 ARSPD_AUTOCAL,0
ARSPD_BUS,1 ARSPD_BUS,1
ARSPD_FBW_MAX,15 AIRSPEED_MAX,15
ARSPD_FBW_MIN,10 AIRSPEED_MIN,10
ARSPD_OFFSET,2015.877 ARSPD_OFFSET,2015.877
ARSPD_PIN,1 ARSPD_PIN,1
ARSPD_PSI_RANGE,1 ARSPD_PSI_RANGE,1

View File

@ -29,7 +29,7 @@ AHRS_EKF_TYPE 10
TRIM_THROTTLE 30 TRIM_THROTTLE 30
NAVL1_PERIOD 7 NAVL1_PERIOD 7
AIRSPEED_CRUISE 24.00 AIRSPEED_CRUISE 24.00
ARSPD_FBW_MAX 30 AIRSPEED_MAX 30
LIM_ROLL_CD 7000 LIM_ROLL_CD 7000
# setup for scripting # setup for scripting
SCR_ENABLE 1 SCR_ENABLE 1

View File

@ -10,8 +10,8 @@ LIM_ROLL_CD 6500
LAND_PITCH_CD 100 LAND_PITCH_CD 100
LAND_FLARE_SEC 3 LAND_FLARE_SEC 3
ARSPD_USE 1 ARSPD_USE 1
ARSPD_FBW_MAX 30 AIRSPEED_MAX 30
ARSPD_FBW_MIN 10 AIRSPEED_MIN 10
KFF_RDDRMIX 0.5 KFF_RDDRMIX 0.5
THR_MAX 100 THR_MAX 100
RC1_MAX 2000 RC1_MAX 2000