3.6 KiB
3.6 KiB
+++ title = "TECS tuning calculator" weight = 13 sort_by = "weight" insert_anchor_links = "right" +++ To use this calculator, first follow the steps in the TECS tuning section of the ArduPilot setup checklist.
<script> function kmhToMs(kmh) { return Math.round(kmh / 3.6); } function kmhToCms(kmh) { return Math.round(kmh / 0.036); } function calculateParameters(event) { var cruiseSpeed = Number(document.getElementById("cruiseSpeed").value); var cruiseThrottle = Number(document.getElementById("cruiseThrottle").value); var maxSpeed = Number(document.getElementById("maxSpeed").value); var maxThrottle = Number(document.getElementById("maxThrottle").value); var stallSpeed = Number(document.getElementById("stallSpeed").value); var downPitch = Number(document.getElementById("downPitch").value); var upPitch = Number(document.getElementById("upPitch").value); var upSpeed = Number(document.getElementById("upSpeed").value); var downSpeed = Number(document.getElementById("downSpeed").value); var downMorePitch = Number(document.getElementById("downMorePitch").value); var downMoreSpeed = Number(document.getElementById("downMoreSpeed").value); var output = document.getElementById("parachuteCommand"); output.textContent = ("parachute set" + " \\\n TRIM_ARSPD_CM=" + kmhToCms(cruiseSpeed) + " \\\n TRIM_THROTTLE=" + cruiseThrottle + " \\\n THR_MAX=" + maxThrottle + " \\\n ARSPD_FBW_MAX=" + kmhToMs(maxSpeed * 0.95) + " \\\n ARSPD_FBW_MIN=" + kmhToMs(stallSpeed * 1.05) + " \\\n STAB_PITCH_DOWN=" + downPitch + " \\\n TECS_PITCH_MIN=-" + downMorePitch + " \\\n TECS_PITCH_MAX=" + upPitch + " \\\n TECS_CLMB_MAX=" + upSpeed + " \\\n TECS_SINK_MIN=" + downSpeed + " \\\n TECS_SINK_MAX=" + downMoreSpeed + " \\\n FBWB_CLIMB_RATE=" + upSpeed ); } </script>Fly straight
Cruise speed (km/h):
Cruise throttle percentage (%):
Maximum speed (km/h):
Maximum throttle (%):
Slowest speed (km/h):
Down pitch (deg):
Fly up
Up pitch (deg):
Up speed (m/s):
Fly down
Down speed (m/s):
Fly down more
Down more pitch (deg):
Down more speed (m/s):
Calculate parameters
Run this command in a terminal, making sure you have [Parachute](https://gitlab.com/stavros/parachute) installed:
(Please fill out the values above first)
Last updated on July 06, 2021. For any questions/feedback, email me at hi@stavros.io.