Bug description:
I’m trying to externally be able to reset the cockpit camera to the default view (same as when you press Shift+Space), but none of the SimConnect events or momentary boolean variable seem to work.
I’ve tried sending the following events:
PAN_RESET
EYEPOINT_RESET
PAN_RESET_COCKPIT
As well as setting this momentary boolean variable:
CAMERA ACTION COCKPIT VIEW RESET
I can see CAMERA ACTION COCKPIT VIEW RESET instantly resetting to zero, but the cockpit view doesn’t reset.
For contrast, COCKPIT CAMERA UPPER POSITION works fine with the same methodology, where it being set to 1 moves the camera to the upper position, and vice-versa for 0.
My workaround for now is to have that external method send the “LeftShift+Space” keyboard press (which does work), but that depends on user controls binding, and is of course unreliable because of that.
Have you tried using the CAMERA REQUEST ACTION simvar?
The lack of a proper documentation for camera simvars and events is a long standing issue unfortunately. This is already in our bug tracking system.
I’m noticing that using CAMERA REQUEST ACTION 1 while the camera is focused on instruments (CAMERA SUBSTATE 5) returns the camera where I’d expect it (CAMERA SUBSTATE 1), however, CAMERA VIEW TYPE AND INDEX:1 is 8 instead of 1, meaning the default mappings for POV UP/DOWN that are “next/previous pilot position” stop working. I have to manually set CAMERA VIEW TYPE AND INDEX:1 to within the [0-2] range for that functionality to return. Is that by design?
The workaround I’ve found for now is to also manually set the CAMERA VIEW TYPE AND INDEX:1 to 1 after a short delay after CAMERA REQUEST ACTION 1, like 100ms.