Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Llama Race 5in to single multivoltage tune with RPM Enabled #438

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#$ TITLE: Tehllama 5" Race Multivoltage
#$ TITLE: Tehllama 5" Race Multivoltage Spec
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: OTHER
#$ STATUS: EXPERIMENTAL
#$ KEYWORDS: 533, Freedom, FreedomSpec, Tune, Spec, Race, Llama, MultiVoltage, Texas, BMS, 3S, 5in, AutoSelect, MM, Omni
#$ AUTHOR: Daniel Appel / Tehllama
#$ DESCRIPTION: This is a multi-voltage tune built for 5in Race Builds in the 400-575g AUW range. 
#$ DESCRIPTION: This is a multi-voltage tune built for 5in Race & Spec Builds in the 400-575g AUW range. 
#$ DESCRIPTION: Use the Options to select KV - 1600-2750KV are supported for the entire 3S-6S voltage range
#$ DESCRIPTION: ALL FOUR Tune Profiles are used, with tunes Auto-Selected for 6S, 5S, 4S, and 3S (respectively)
#$ DESCRIPTION:
#$ DESCRIPTION: For RPM Spec Racing, you can select the 18,000RPM or 24,000RPM spec options
#$ DESCRIPTION: You may also set your own RPM value later. RPM Limiting will disable VBat Sag Compensation
#$ DESCRIPTION:
#$ DESCRIPTION: Select the Motor KV Range from the Drop-Down Menu that most closely matches your craft
#$ DESCRIPTION: Default is for ~1950KV motors, for example Freedom Spec 2207 1960KV 533/XNOVA Motors
#$ DESCRIPTION: Special Thanks to Stephen 'Supafly' Wright for Master Slider Calculator assistance
Expand All @@ -16,13 +19,7 @@
#$ DESCRIPTION: This tune expects ESCs configured to 48kHz PWM Frequency, 23°-27°/MedHigh timing and 0.38 Rampup
#$ DESCRIPTION: Using more aggressive ESC settings is NOT advised if using higher cell count batteries
#$ DESCRIPTION: 
#$ DESCRIPTION: This tune will auto-select profiles based on battery voltage at plugin.
#$ DESCRIPTION: When 3S packs are plugged in, this will auto-select an aggressive spec racing tune on Profile 3
#$ DESCRIPTION: At higher motor KV, MotorOutput Limiting is used to scale these to Freedom Spec RPM
#$ DESCRIPTION: 3S batteries on craft with <1950KV motors experience very reduced performance
#$ DESCRIPTION:
#$ DESCRIPTION: 6S, 5S, and 4S will run conservative open race tunes 
#$ DESCRIPTION: Small motor output limits are applied for EXTREME Battery-KV combinations
#$ DESCRIPTION: Small motor output limits are applied for EXTREME Battery-KV combinations:
#$ DESCRIPTION: Combinations that spin 5" propellers in transonic regimes (i.e. 6S >2200KV and 5S >2650KV)
#$ DESCRIPTION: 
#$ DESCRIPTION: !!! Strongly recommend a full chip erase reflash if alternative tunes are desired after installing this preset!!!
Expand All @@ -40,6 +37,49 @@

#$ FORCE_OPTIONS_REVIEW: TRUE

#$ OPTION_GROUP BEGIN: RPM Limiting
#$ OPTION BEGIN (UNCHECKED): Apply 18k RPM (Requires Bidirectional DShot, Recommend KAACK Firmware)
set rpm_limit = ON
set rpm_limit_value = 18000
profile 0
set vbat_sag_compensation = 0
profile 1
set vbat_sag_compensation = 0
profile 2
set vbat_sag_compensation = 0
profile 3
set vbat_sag_compensation = 0
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): Apply 24k RPM (Requires Bidirectional DShot, Recommend KAACK Firmware)
set rpm_limit = ON
set rpm_limit_value = 24000
profile 0
set vbat_sag_compensation = 0
profile 1
set vbat_sag_compensation = 0
profile 2
set vbat_sag_compensation = 0
profile 3
set vbat_sag_compensation = 0
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): Apply Spicier RPM PID Values
set rpm_limit_p = 44
set rpm_limit_i = 17
set rpm_limit_d = 11
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): Disable Persistent Stats
# Remove Persistent Stats
set stats_min_armed_time_s = -1
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): Use Narrow Endpoints to enable 100% Throttle
set min_check = 1050
set max_check = 1970
#$ OPTION END
#$ OPTION BEGIN (CHECKED): Set Max Cell Voltage to 4.38V
set vbat_max_cell_voltage = 438
#$ OPTION END
#$ OPTION_GROUP END

#$ OPTION_GROUP BEGIN: Filters
#$ OPTION BEGIN (CHECKED): Apply RPM Enabled SAFE Filters to ALL profiles (Requires Bidirectional DShot)
profile 0
Expand Down Expand Up @@ -386,24 +426,19 @@
set dyn_idle_i_gain = 42
set dyn_idle_d_gain = 42
#$ OPTION END

#$ OPTION BEGIN (CHECKED): Set Max Cell Voltage to 4.38V
set vbat_max_cell_voltage = 438
#$ OPTION END


#$ OPTION BEGIN (UNCHECKED): Set VBat Sag Compensation for 4/5/6S to 82
profile 0
set vbat_sag_compensation = 82
profile 1
set vbat_sag_compensation = 82
profile 2
set vbat_sag_compensation = 82
#$ OPTION END

#$ OPTION BEGIN (CHECKED): Disable VBat Sag Compensation on 3S (Freedom Spec)
profile 3
set vbat_sag_compensation = 0
set vbat_sag_compensation = 82
#$ OPTION END


#$ OPTION_GROUP END

#$ OPTION_GROUP BEGIN: Motor KV Selection (Defaults to ~1950KV)
Expand Down Expand Up @@ -506,7 +541,6 @@
profile 3
set simplified_master_multiplier = 130
simplified_tuning apply
set motor_output_limit = 96
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2100KV Motors
profile 0
Expand All @@ -518,7 +552,6 @@
profile 3
set simplified_master_multiplier = 125
simplified_tuning apply
set motor_output_limit = 94
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2150KV Motors
profile 0
Expand All @@ -530,7 +563,6 @@
profile 3
set simplified_master_multiplier = 120
simplified_tuning apply
set motor_output_limit = 92
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2200KV Motors
profile 0
Expand All @@ -542,116 +574,106 @@
profile 3
set simplified_master_multiplier = 120
simplified_tuning apply
set motor_output_limit = 90
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2250KV Motors
profile 0
set simplified_master_multiplier = 55
set motor_output_limit = 97
profile 1
set simplified_master_multiplier = 70
profile 2
set simplified_master_multiplier = 85
profile 3
set simplified_master_multiplier = 120
simplified_tuning apply
set motor_output_limit = 88
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2300KV Motors
profile 0
set simplified_master_multiplier = 55
set motor_output_limit = 94
set motor_output_limit = 98
profile 1
set simplified_master_multiplier = 70
profile 2
set simplified_master_multiplier = 85
profile 3
set simplified_master_multiplier = 115
simplified_tuning apply
set motor_output_limit = 86
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2350KV Motors
profile 0
set simplified_master_multiplier = 55
set motor_output_limit = 92
set motor_output_limit = 97
profile 1
set simplified_master_multiplier = 65
profile 2
set simplified_master_multiplier = 85
profile 3
set simplified_master_multiplier = 110
simplified_tuning apply
set motor_output_limit = 84
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2400KV Motors
profile 0
set simplified_master_multiplier = 50
set motor_output_limit = 90
set motor_output_limit = 95
profile 1
set simplified_master_multiplier = 65
profile 2
set simplified_master_multiplier = 80
profile 3
set simplified_master_multiplier = 110
simplified_tuning apply
set motor_output_limit = 82
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2450KV Motors
profile 0
set simplified_master_multiplier = 50
set motor_output_limit = 88
set motor_output_limit = 92
profile 1
set simplified_master_multiplier = 65
profile 2
set simplified_master_multiplier = 80
profile 3
set simplified_master_multiplier = 105
simplified_tuning apply
set motor_output_limit = 80
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2500KV Motors
rofile 0
set simplified_master_multiplier = 50
set motor_output_limit = 86
set motor_output_limit = 90
profile 1
set simplified_master_multiplier = 60
profile 2
set simplified_master_multiplier = 80
profile 3
set simplified_master_multiplier = 105
simplified_tuning apply
set motor_output_limit = 79
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2550KV Motors
profile 0
set simplified_master_multiplier = 50
set motor_output_limit = 85
set motor_output_limit = 88
profile 1
set simplified_master_multiplier = 60
profile 2
set simplified_master_multiplier = 75
profile 3
set simplified_master_multiplier = 105
simplified_tuning apply
set motor_output_limit = 77
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2600KV Motors
profile 0
set simplified_master_multiplier = 50
set motor_output_limit = 83
set motor_output_limit = 86
profile 1
set simplified_master_multiplier = 60
profile 2
set simplified_master_multiplier = 75
profile 3
set simplified_master_multiplier = 100
simplified_tuning apply
set motor_output_limit = 76
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2650KV Motors
profile 0
set simplified_master_multiplier = 45
set motor_output_limit = 81
set motor_output_limit = 85
profile 1
set simplified_master_multiplier = 60
set motor_output_limit = 98
Expand All @@ -660,34 +682,31 @@
profile 3
set simplified_master_multiplier = 100
simplified_tuning apply
set motor_output_limit = 74
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2700KV Motors
profile 0
set simplified_master_multiplier = 45
set motor_output_limit = 80
set motor_output_limit = 82
profile 1
set simplified_master_multiplier = 55
set motor_output_limit = 96
set motor_output_limit = 99
profile 2
set simplified_master_multiplier = 70
profile 3
set simplified_master_multiplier = 95
simplified_tuning apply
set motor_output_limit = 73
#$ OPTION END
#$ OPTION BEGIN (UNCHECKED): ~2750KV Motors
profile 0
set simplified_master_multiplier = 45
set motor_output_limit = 78
set motor_output_limit = 80
profile 1
set simplified_master_multiplier = 55
set motor_output_limit = 96
set motor_output_limit = 97
profile 2
set simplified_master_multiplier = 70
profile 3
set simplified_master_multiplier = 95
simplified_tuning apply
set motor_output_limit = 72
#$ OPTION END
#$ OPTION_GROUP END
Loading
Loading