Initial Tuning Flight¶
Pilot’s preparation for first flight¶
The first takeoff of an untuned multirotor is the most dangerous seconds of the aircraft’s life. This is where the aircraft could be very unstable causing a sudden increase in power when then results in the aircraft jumping into the air, or it may be so poorly tuned that you have insufficient control over the aircraft once it is airborne. The pilot should be extremely diligent during the tuning flights to avoid a situation that could result in injury or damage.
There are several things that the pilot can do to minimise the risk during the early tuning process:
The pilot should conduct a motor number and orientation check (see Checking the motor numbering with the Mission Planner Motor test). Care should be taken to ensure that the correct frame type is selected. Incorrect frame type can result in a very fast yaw rotation or complete loss of control. Take note of the output percentage required to spin the propellers and ensure that:
MOT_SPIN_ARM is set high enough to spin the motors cleanly.
MOT_SPIN_MIN is set high enough to spin the motors win a minimal level of thrust.
All flights after a significant tuning change should be done in Stabilize. Stabilize provides the pilot with significantly more control over the aircraft in the event that the attitude controllers are unstable.
The pilot should not take off in AltHold until the altitude controller has been tested in flight. This should be done by taking off in Stabilize and switching to Alt Hold. While Alt Hold is rarely a problem unless the aircraft has a very low hover throttle.
For the initial flights the pilot should ensure that these parameters are set:
Use a radio and calibrate the radio correctly (see Radio Control Calibration).
Configure an Emergency Stop Motors switch and test it (see Auxiliary Functions).
Do tuning flights in low-wind condition and normal weather (no rain and between 15°C/59°F and 25°C/77°F).
Practice STABILIZE flight in simulator or on a low-end drone first, you should be confident to be able to takeoff and land with your untuned aircraft.
The first take off is the most dangerous time for any multirotor. Care must be taken to ensure the aircraft is not destroyed in the first seconds of flight and nobody is injured.
Ensure that all spectators are at a safe distance.
Ensure the pilot is at a safe distance and position.
The pilot should refresh themselves on the method used to disarm the aircraft (using Auxiliary Functions for Motor Interlock or Arm/Disarm may be beneficial).
This flight will allow to setup your aircraft in a “flyable for tuning” state.
Ensure the aircraft is in STABILIZE mode
Arm the aircraft
Immediately disarm the aircraft to ensure your disarm procedure is correct
Arm the aircraft
Slowly increase the throttle looking for signs of oscillation. (long or flexible landing gear may cause some landing gear oscillation that will only go away after the aircraft leaves the ground)
As soon as the aircraft lifts off the ground immediately put the aircraft back down as gently as possible
Disarm the aircraft
Evaluate what you observed to decide if you need to make adjustments to the tuning parameters or if it is safe to take off again
Arm and increase the throttle to initiate a takeoff
Hover at approximately 1m altitude and apply small (5 degrees) control inputs into roll and pitch
Immediately land if any oscillation is observed
Next section will explain how to remove the oscillations.
Initial aircraft tune¶
The first priority when tuning an multirotor aircraft is to establish a stable tune, free of oscillations, that can be used to do further tests.
Arm the aircraft in STABILIZE
Increase the throttle slowly until the aircraft leaves the ground
If the aircraft starts to oscillate immediately abort the takeoff and/or land the aircraft
Reduce all the following parameters by 50%
This process is repeated until the aircraft can hover without oscillations being detectable visually or audibly.
If the aircraft has very long or flexible landing gear then you may need to leave the ground before ground resonance stops.
Be aware that in this state the aircraft may be very slow to respond to large control inputs and disturbances. The pilot should be extremely careful to put minimal stick inputs into the aircraft to avoid the possibility of a crash.
This test will allow to test the altitude controller and ensure the stability of your aircraft.
Check MOT_HOVER_LEARN is set to 2. This will allow the controller to learn by itself the correct hover value when flying.
Take off in STABILIZE and increase altitude to 5m. Switch to AltHold and be ready to switch back to STABILIZE. If the aircraft is hovering at a very low hover throttle value you may hear a reasonably fast oscillation in the motors. Ensure the aircraft has spent at least 30 seconds in hover to let the hover throttle parameter converge to the correct value. Land and disarm the aircraft.
Set these parameters on ground and preferably disarm (A confident pilot could set them in flight with GCS or CH6 tuning knob):
Harmonic Notch Filtering¶
After you have a hover without oscillations the next step is to get get a good notch filter setup to reduce noise to the PID controllers. A good set of notch filtering parameters is critical to a good tune.
To get a notch filter setup you need to hover your vehicle for at least 30 seconds with no pilot input and with INS_LOG_BAT_MASK set to 1. This will enable FFT logging which will guide the correct setup of the notch filters. You should then carefully read the Managing Gyro Noise with the Dynamic Harmonic Notch Filters documentation and setup a harmonic notch to remove the noise from your gyros.
Eliminating noise with the notch filters will dramatically improve the quality of your tune.