3 Thank you for trying the INAV VTOL. Read every line in this tutorial. Your patience can save both time and potential repair costs for the model.
5 ## Who Should Use This Tutorial?
7 This tutorial is designed for individuals who
8 - have prior experience with **both INAV multi-rotor and INAV fixed-wing configurations/operations.**
9 - know how to create a custom mixer for their model.
10 - know basic physics of vtol operation
14 The firmware is in a flyable state, but it hasn't undergone extensive testing yet. This means there may be potential issues that have not yet been discovered.
18 Please be aware that both the setup procedure and firmware may change in response to user feedback and testing results.
19 ## Your Feedback Matters
21 We highly value your feedback as it plays a crucial role in the development and refinement of INAV VTOL capabilities. Please share your experiences, suggestions, and any issues you encounter during testing. Your insights are invaluable in making INAV VTOL better for everyone.
23 # VTOL Configuration Steps
25 ### The VTOL functionality is achieved by switching/transitioning between two configurations stored in the FC. VTOL specific configurations are Mixer Profiles with associated PID profiles. One profile set is for fixed-wing(FW) mode, One is for multi-copter(MC) mode. Configuration/Settings other than Mixer/PID profiles are shared among two modes
26 ![Alt text](Screenshots/mixerprofile_flow.png)
28 0. **Find a DIFF ALL file for your model and start from there if possible**
29 - Be aware that `MIXER PROFILE 2` RC mode setting introduced by diff file can get your stuck in a mixer_profile. remove or change channel to proceed
30 1. **Setup Profile 1:**
31 - Configure it as a normal fixed-wing/multi-copter.
33 2. **Setup Profile 2:**
34 - Configure it as a normal multi-copter/fixed-wing.
36 3. **Mode Tab Settings:**
37 - Set up switching in the mode tab.
39 4. *(Recommended)* **Transition Mixing (Multi-Rotor Profile):**
40 - Configure transition mixing to gain airspeed in the multi-rotor profile.
42 5. *(Optional)* **Automated Switching (RTH):**
43 - Optionally, set up automated switching in case of failsafe.
45 # STEP0: Load parameter preset/templates
46 Find a working diff file if you can and start from there. If not, select keep current settings and apply following parameter in cli but read description about which one to apply.
50 set gyro_main_lpf_hz = 80
51 set dynamic_gyro_notch_min_hz = 50
52 set dynamic_gyro_notch_mode = 3D
53 set motor_pwm_protocol = DSHOT300 #Try dshot first and see if it works
54 set airmode_type = STICK_CENTER_ONCE
57 set nav_disarm_on_landing = OFF #band-aid for false landing detection in NAV landing of multi-copter
58 set nav_rth_allow_landing = FS_ONLY
59 set nav_wp_max_safe_distance = 500
60 set nav_fw_control_smoothness = 2
61 set nav_fw_launch_max_altitude = 5000
63 set servo_pwm_rate = 160 #If model using servo for stabilization in MC mode and servo can tolerate it
64 set servo_lpf_hz = 30 #If model using servo for stabilization in MC mode
67 ## profile 1 as airplane and profile 2 as multi rotor
70 set platform_type = AIRPLANE
71 set model_preview_type = 26
72 set motorstop_on_low = ON
73 set mixer_pid_profile_linking = ON
77 set platform_type = TRICOPTER
78 set model_preview_type = 1
79 set mixer_pid_profile_linking = ON
81 profile 1 #pid profile
83 set d_boost_min = 1.000
84 set d_boost_max = 1.000
85 set fw_level_pitch_trim = 5.000
89 set fw_turn_assist_pitch_gain = 0.4
90 set max_angle_inclination_rll = 450
98 set dterm_lpf_type = PT3
99 set d_boost_min = 0.800
100 set d_boost_max = 1.200
101 set d_boost_gyro_delta_lpf_hz = 60
102 set antigravity_gain = 2.000
103 set antigravity_accelerator = 5.000
104 set smith_predictor_delay = 1.500
106 set tpa_breakpoint = 1200
107 set tpa_on_yaw = ON #If model using control surface/tilt mechanism for stabilization in MC mode
111 set mc_iterm_relax = RPY
116 # STEP1&2: Configuring as a Normal fixed-wing/Multi-Copter in two profiles separately
118 1. **Select the fisrt Mixer Profile and PID Profile:**
119 - In the CLI, switch to the mixer_profile and pid_profile you wish to set first. You can also switch mixer_profile/pid_profile through gui if with aforementioned presets loaded.
121 mixer_profile 1 #in this example, we set profile 1 first
122 set mixer_pid_profile_linking = ON # Let the mixer_profile handle the pid_profile switch on this mixer_profile
123 set platform_type = AIRPLANE
127 2. **Configure the fixed-wing/Multi-Copter:**
128 - Configure your fixed-wing/Multi-Copter as you normally would, or you can copy and paste default settings to expedite the process.
129 - Dshot esc protocol availability might be limited depends on outputs and fc board you are using. change the motor wiring or use oneshot/multishot esc protocol and calibrate throttle range.
130 - You can use throttle = -1 as a placeholder for the motor you wish to stop if the motor isn't the last motor
131 - Consider conducting a test flight to ensure that everything operates as expected. And tune the settings, trim the servos.
133 ![Alt text](Screenshots/mixerprofile_fw_mixer.png)
135 3. **Switch to Another Mixer Profile with PID Profile:**
136 - In the CLI, switch to another mixer_profile along with the appropriate pid_profile. You can also switch mixer_profile/pid_profile through gui if with aforementioned presets loaded.
139 set mixer_pid_profile_linking = ON
140 set platform_type = MULTIROTOR/TRICOPTER
144 4. **Configure the Multi-Copter/fixed-wing:**
145 - Set up your multi-copter/fixed-wing as usual, this time for mixer_profile 2 and pid_profile 2.
146 - Utilize the 'MAX' input in the servo mixer to tilt the motors without altering the servo midpoint.
147 - At this stage, focus on configuring profile-specific settings. You can streamline this process by copying and pasting the default PID settings.
148 - you can set -1 in motor mixer throttle as a place holder: disable that motor but will load following motor rules
149 - compass is required to enable navigation modes for multi-rotor profile.
150 - Consider conducting a test flight to ensure that everything operates as expected. And tune the settings.
151 - It is advisable to have a certain degree of control surface (elevon / elevator) mapping for stabilization even in multi-copter mode. This helps improve control authority when airspeed is high. It might be unable to recover from a dive without them.
153 ![Alt text](Screenshots/mixerprofile_mc_mixer.png)
155 5. **Tailsitters:planned for INAV 7.1**
156 - Configure the fixed-wing mode/profile sets normally. Use MultiCopter platform type for tail_sitting flying mode/profile sets.
157 - The baseline board aliment is FW mode(ROLL axis is the trust axis). So set `tailsitter_orientation_offset = ON ` in the tail_sitting MC mode.
158 - Configure mixer ROLL/YAW mixing according to tail_sitting orientation in the tail_sitting MC mode. YAW axis is the trust axis.
159 - Conduct a bench test and see the orientation of the model changes in inav-configurator setup tab
161 # STEP3: Mode Tab Settings:
162 ### We recommend using an 3-pos switch on you radio to activate these modes, So pilot can jump in or bell out at any moment.
163 ### Here is a example, in the bottom of inav-configurator Modes tab:
164 ![Alt text](Screenshots/mixer_profile.png)
165 | 1000~1300 | 1300~1700 | 1700~2000 |
167 | Profile1(FW) with transition off | Profile2(MC) with transition on | Profile2(MC) with transition off |
169 - Profile file switching becomes available after completing the runtime sensor calibration(15-30s after booting). And It is **not available** when a navigation mode or position hold is active.
171 - By default, `mixer_profile 1` is used. `mixer_profile 2` is used when the `MIXER PROFILE 2` mode is activate. Once configured successfully, you will notice that the profiles and model preview changes accordingly when you refresh the relevant INAV Configurator tabs.
173 - Use the `MIXER TRANSITION` mode to gain airspeed in MC profile, set `MIXER TRANSITION` accordingly.
175 Conduct a bench test on the model (without props attached). The model can now switch between fixed-wing and multi-copter modes while armed. Furthermore, it is capable of mid-air switching, resulting in an immediate stall upon entering fixed-wing profile
177 # STEP4: Transition Mixing (Multi-Rotor Profile)(Recommended)
178 ### Transition Mixing is typically useful in multi-copter profile to gain airspeed in prior to entering the fixed-wing profile. When the `MIXER TRANSITION` mode is activated, the associated motor or servo will move according to your configured Transition Mixing.
180 Please note that transition input is disabled when a navigation mode is activated. The use of Transition Mixing is necessary to enable additional features such as VTOL RTH with out stalling.
181 ## Servo 'Transition Mixing': Tilting rotor configuration.
182 Add new servo mixer rules, and select 'Mixer Transition' in input. Set the weight/rate according to your desired angle. This will allow tilting the motor for tilting rotor model.
184 ![Alt text](Screenshots/mixerprofile_servo_transition_mix.png)
186 ## Motor 'Transition Mixing': Dedicated forward motor configuration
188 - -2.0 < throttle < -1.0: The motor will spin regardless of the radio's throttle position at a speed of `abs(throttle) - 1` multiplied by throttle range only when Mixer Transition is activated.
190 ![Alt text](Screenshots/mixerprofile_4puls1_mix.png)
192 ## TailSitter 'Transition Mixing':
193 No additional settings needed, 45deg off set will be added to target pitch angle for angle mode in the firmware.
195 ### With aforementioned settings, your model should be able to enter fixed-wing profile without stalling.
197 # Automated Switching (RTH) (Optional):
198 ### This is one of the least tested features. This feature is primarily designed for Return to Home (RTH) in the event of a failsafe.
199 When configured correctly, the model will use the Fixed-Wing (FW) mode to efficiently return home and then transition to Multi-Copter (MC) mode for easier landing.
201 To enable this feature, type following command in cli
203 1. In your MC mode mixer profile (e.g., mixer_profile 2), set `mixer_automated_switch` to `ON`. leave it to `OFF` if burning remaining battery capacity on the way home is acceptable.
206 set mixer_automated_switch= ON
209 2. Set `mixer_switch_trans_timer` ds in cli in the MC mode mixer profile to specify the time required for your model to gain sufficient airspeed before transitioning to FW mode.
212 set mixer_switch_trans_timer = 30 # 3s, 3000ms
214 3. In your FW mode mixer profile (e.g., mixer_profile 1), also set `mixer_automated_switch` to `ON`. leave it to `OFF` if automated landing in fixed-wing is acceptable.
217 set mixer_automated_switch = ON
219 4. Save your settings. type `save` in cli.
221 If you set `mixer_automated_switch` to `OFF` for all mixer profiles (the default setting), the model will not perform automated transitions. You can always enable navigation modes after performing a manual transition.
224 # Notes and Experiences
226 - VTOL model operating in multi-copter (MC) mode may encounter challenges in windy conditions. Please exercise caution when testing in such conditions.
227 - Make sure you can recover from a complete stall before trying the mid air transition
228 - It will be much safer if you can understand every line in diff all, read your diff all before maiden
231 - In some tilting motor models, you may experience roll/yaw coupled oscillations when `MIXER TRANSITION` is activated. To address this issue, you can try the following:
232 1. Use prop blade meets at top/rear prop direction for tilting motors to balance the effects of torque and P-factor.
233 2. In addition to 1. Add a little yaw mixing(about 0.2) in tilt motors.
234 - There will be a time window that tilting motors is providing up lift but rear motor isn't. Result in a sudden pitch raise on the entering of the mode. Use the max speed or faster speed in tiling servo to reduce the time window. OR lower the throttle on the entering of the FW mode to mitigate the effect.
235 ## Dedicated forward motor
236 - Easiest way to setup a vtol. and efficiency can be improved by using different motor/prop for hover and forward flight