**1)**What is this?
I searched on the wiki but I didnāt find anything :S
**2 and 3)**In auto mode is used the 2 (throttle) or 3 (airspeed)?
If I set cruise throttle to 50% but I set cruise arispeed to 10m/s that is 25% of throttle, in Auto mission, which one is used? Is used airspeed 10m/s or throttle 50%?
Iām pretty sure that (1) is TECS_SPDWEIGHT, which determines how much the plane will use pitch to control airspeed. Values closer to 0.0 will cause no pitch to correct airspeed, and values closer to 2.0 will make pitch very reactive to airspeed. The default value of 1.0 generally works quite well. Try changing the field and seeing if the TECS_SPEEDWEIGHT parameter changes to confirm.
In auto mode, the plane will use airspeed (3). The cruise throttle (2) will act as the airplaneās āstarting pointā, so having it somewhat close to the throttle the airplane will need to maintain the commanded airspeed will reduce throttle jumps when transitioning between modes.
Looks like my initial guess was wrong. Itās the airspeed calibration ratio, ARSPD_RATIO. Youād have to query one of the devs or look through the source to understand what it does. I doubt you want to change it.
Breaking it down, we see thereās aā¦ ā30% updated moving time-average filterā (Thatās my words, anyone know the technical name for this type of filter?) on the calculation.
From Bernoulliās principle we find that we expect airspeed to vary with the square-root of pressure, so that part makes sense.
So ARSPD_RATIO and sensor_offset are the āslopeā and āy-interceptā parameters mapping the sensed pressure to what we believe is the actual pressure, and also accounting for the 2*rho constants in Bernouli. I think this explains why the initial value is sent near 2.