Bad Weather Weekend here, so no further test flights yet. I ended up adding more features instead. Majority of these are suggested by h-elsner, thanks for these! ;-)
The most interesting bits:
- Acquiring -> Ready transition on ST16 happens only when the drone is fully mission-capable. The PX4 takes its time to make things ready, even after the GPS has acquired a valid lock.
-The RGB LED and refactoring of ST16_telemetry.cpp. Minor changes here and there, but the most notable change will be the LED reacting to drone's status. This required some planning as I wanted it to be as intuitive as possible - no-one remembers complex light/blink patterns.
So I ended up with the following "rules":
1) When the LED is SOLID regardless of color, you have the full control
2) When the LED is BLINKING, the Thunderbird is actively doing something (like assisting you somehow)
3) The
lighter the color, the
harder more challenging and rewarding it is to fly ;-)
4) Red light = bad thing
Green: Startup
GREEN blinking: The drone is starting up. The GNSS and navigation systems are not ready. The home position is not set. The drone can be forced to fly in non-GNSS modes but RTL will not be available during that flight. GNSS-assisted flight modes are degraded to Stabilize with or without altitude hold. The GNSS-assisted modes will become available when the GNSS and estimator become ready (this will happen also during flight, but the RTH remains INOP until you land and take-off again, as there is no home position set for this flight). The drone takes a minute or two to start up, to be fully mission capable. This never happens indoors, but it is perfectly flyable.
The ST16 shows "acquiring" in GNSS mode display and "start" as a flight mode
GREEN solid: The drone is ready. It has full navigation capability and the home position is set. The green light will not appear when the drone is airborne. The ST16 GNSS status transitions from "acquiring" to "ready" and flight mode display shows also "ready". You are good to go, no need to wait any further.
Purple: GNSS-assisted flight
PURPLE blinking: Mission mode. The Thunderbird is fully automatic. This is the autoflight mode and easiest of them all since the drone flies itself from take-off to motor shutdown. ;-)
ST16 flight mode display: "Waypoint" or "Home".
PURPLE solid: Position Mode. The Thunderbird flies like a stock Typhoon.
All sensors and GNSS must be fully operational and perfectly calibrated for these modes.
ST16 flight mode display: "Angle"
Blue: Stabilize
BLUE blinking: Stabilize mode with altitude hold. Throttle controls altitude. The Thunderbird controls thrust to maintain the altitude. (If the Position mode was requested with no valid positioning solution, meaning you took off before the estimator and GNSS were ready, this is what you will get instead as a fallback.

) This mode is not mapped to the mode selector switch by default, but you can summon this by requesting a position mode from a drone that took off before it was ready.
BLUE solid: Stabilize mode. Like the Typhoon without the GPS. Direct throttle control, throttle controls thrust.
These modes do not require GNSS and magnetometer being operational. Indoor flight is possible and magnetic interferences are no issue. These modes can be used to recover the drone from GPS/magnetometer issues, if you'll ever encounter any. These modes require active controlling, but they are still rather easy to fly.
ST16 flight mode display in both: "THR"
White: Manual flight
WHITE blinking: Rattitude mode or "Assisted Acrobatics". Stabilize mode that does flips and loops. The Thunderbird is watching your back while you are bashing it around the sky. Release the sticks and the drone should self-recover if there is enough altitude.
WHITE solid: Manual, Acro or Rate mode. Sticks control angular acceleration, no self-leveling, no bank limiters, no braking, direct thrust control, absolutely zero assistance from the drone. The GPS, magnetometer, barometer and accelerometer are not used at all, only the gyro data is used for calculations. You are in control now. ;-)
These modes are not set to the mode selector switch in my default parameter file. You have to enable these by yourself. The "Purple solid" is a very difficult mode to fly, but allows you do anything with the drone. The white LED color never appears on a stock Typhoon.
ST16 flight mode display in both: "Rate"
Red: Bad things
RED blinking: The drone has degraded performance, but is airborne, still operational and attempts an automatic recovery. The LED blinks red when the failsafes are activated (RTH) or the drone attempts autoland with a failed GPS (you should never see this; I've seen that once on a huge octocopter in very special conditions, it survived this intact. In normal operation, plenty of things need to go wrong for this to happen).
RED solid: Malfunction, arming is prohibited
ST16 says: "EMER".
-
These are still subject to change, according to your feedback and my findings in test flights. How would you feel about these? OK / too complex to remember?
Br,
TR
^-- Edited. Thanks R G and h-elsner for the feedback!
