固定翼配平指南
配平校准是指在配平状态下计算/设置舵面偏度(配平状态包含相对空速、空气密度、攻击角、飞机配置等)。一架具有合适配平设置的飞机在配平状态下飞行将自动保持其姿态,不需要飞行员或增稳计算机进行任何的控制操作。
General aviation, commercial and large unmanned planes trim their control surfaces using trim tabs while small UAVs simply add an offset to the actuator of the control surface.
The Basic trimming section explains the purpose of each trim parameter and how to find the correct value. The Advanced Trimming section introduces parameters that can be set to automatically adjust the trims based on the measured airspeed and flap position.
基础配平
操作者可通过若干个参数来恰当地配平固定翼飞机。以下是这些参数及其使用场景的概述:
- RCx_TRIM applies trim to the signal received from the RC transmitter. These parameters are set automatically during RC calibration.
- CA_SV_CSx_TRIM applies trim to a control surfaces channel. 该参数用于在飞行前精确地将舵面与默认角度对齐。
- FW_PSP_OFF is the pitch angle at which your aircraft flies level at trim airspeed. See Level-Flight Pitch for how PX4 defines and uses it.
- FW_AIRSPD_TRIM is used by the rate controllers to scale their output depending on the measured airspeed. See Airspeed Scaling for more details.
- TRIM_ROLL, TRIM_PITCH and TRIM_YAW apply trim to the control signals before mixing. For example, if you have two servos for the elevator,
TRIM_PITCHapplies trim to both of them. 这些参数在您的舵面已对齐,但在手动飞行期间出现飞机俯仰/滚轮/偏航/上下/左右动作(不稳定)时,或在增稳飞行期间控制信号有恒定偏移时使用。
设置上述参数的正确顺序是:
- Trim the servos by physically adjusting the linkages lengths if possible and fine tune by trimming the PWM channels (use
PWM_MAIN/AUX_TRIMx) on the bench to properly set the control surfaces to their theoretical position. - Fly in stabilized mode at cruise speed and set
FW_PSP_OFFto the pitch angle that the airplane needs to fly at in order to keep constant altitude during wing-leveled flight. If you are using an airspeed sensor, also set the correct cruise airspeed (FW_AIRSPD_TRIM). - Look at the actuator controls in the log file (upload it to Flight Review and check the Actuator Controls plot for example) and set the pitch trim (
TRIM_PITCH). 将该值设置为平飞时俯仰角度的平均值。
步骤3可以在步骤2之前执行,如果你不想查看日志, 或者如果您在手动模式下感觉舒适。 You can then trim your remote (with the trim switches) and report the values to TRIM_PITCH (and remove the trims from your transmitter) or update TRIM_PITCH directly during flight via telemetry and QGC.
Level-Flight Pitch
PX4 measures the fixed-wing pitch angle θ between the body x-axis and the horizon. The body frame is fixed to the vehicle: x points forward through the nose, y along the right wing and z down. Its orientation follows the mounting of the flight controller (see Flight Controller Orientation), not the wing chord. For tailsitters, the fixed-wing body frame is the multicopter body frame rotated by 90° in pitch.
FW_PSP_OFF is θ in level flight at trim airspeed (FW_AIRSPD_TRIM). In level flight the velocity is horizontal, so this is also the angle of attack measured from the body x-axis. It differs from the angle of attack of the wing by the angle between the wing chord and the body x-axis.
Pitch setpoints and pitch limits in PX4 are absolute pitch angles θ, and FW_PSP_OFF is not added to them. This applies for example to FW_P_LIM_MIN, FW_P_LIM_MAX, FW_TKO_PITCH_MIN, FW_LND_FL_PMIN, FW_LND_FL_PMAX and RWTO_PSP.
FW_PSP_OFF itself is used in these places:
- The altitude and airspeed controller (TECS) uses
FW_PSP_OFFas the pitch at zero climb angle: its pitch setpoint isFW_PSP_OFFplus the commanded climb angle plus an integrator correction. The logged TECS pitch setpoint (tecs_status.pitch_sp_rad) is absolute, while the logged pitch integrator (tecs_status.pitch_integ) is a correction added to it rather than a pitch angle. - In Stabilized mode, the centred pitch stick commands
FW_PSP_OFF. - During the front transition, standard VTOLs ramp their pitch setpoint to
FW_PSP_OFF, and tailsitters end their pitch-down rotation at it. - The first principle check of the airspeed validation considers the vehicle to be pitching down when θ is below
FW_PSP_OFF.
高级配平
在空速增加过程中,会因非对称翼型和使用襟翼而引入俯仰通道低头力矩,因此飞机需要根据测量空速和襟翼位置重新计算配平。为此,可以使用以下参数定义一个关于空速的双线性曲线函数和关于襟翼状态的俯仰修正增量函数(参见下图):
- FW_DTRIM_[R/P/Y]_[VMIN/VMAX] are the roll/pitch/yaw trim value added to
TRIM_ROLL/PITCH/YAWat min/max airspeed (defined by FW_AIRSPD_MIN and FW_AIRSPD_MAX). - CA_SV_CSx_FLAP and CA_SV_CSx_SPOIL are the trimming values that are applied to these control surfaces if the flaps or the spoilers are fully deployed, respectively.

A perfectly symmetrical airframe would only require pitch trim increments, but since a real airframe is never perfectly symmetrical, roll and yaw trims increments are also sometimes required.