I'm building a VTOL aircraft and I'm trying to figure out if there is a way to change the virtual attitude relative to the board while the vehicle is in flight. My vehicle is not a tiltrotor. The entire fuselage will pitch 90° when flying horizontally. If I could change the virtual attitude when I switch from vertical flight to horizontal, then I could use attitude flight mode in both. Is this possible? Any ideas?
It may be possible to make a uav file that only has RotateVirtual settings in it, and bypass some safety checks and import this file (without saving to flash) via OpLink while flying. I don't know whether this can be done while armed, without making code changes, and whether it would even be ignored if you could do it.
I tested with a RevoNano board connected to GCS with a USB cable, and did File, Import UAV Settings...
And it works (loading it to ram) even if the the Safety settings are on OR off, even if the board is in Armed or Unarmed state, at the time the command is given. The only thing I changed in the two files was Attitude, Settings, Roll 90 degrees respectively Roll 0 degrees.
I can see the horizon in the PFD flipping.
Interesting, however, I think if want to explore this further, should use great safety care...