Version: SDK 0.24.3
Frequency: Consistently*
Severity: High because you say it is an important concept
Context: SDK camera setting
Bug description: Pilot/Landing seem to be swapped in the important note:
IMPORTANT! If the camera type is 1 (for the Pilot view type), then the 4 default options will be indexed 1 (Close), 2 (Pilot), 4 (Landing), and 5 (Copilot), and the SimVar CAMERA_VIEW_TYPE_AND_INDEX_MAX will return +1 for the number of options (ie: 5 not 4 by default). This is due to the internal requirements of the code.
The camera type = 1 Pilot index
Landing is 2 and Pilot is 1 Close is missing - if you use the following code
This code works as expected - the Pilot camera type setting of 1 moves the camera to pilot - But 1 is the setting for Close in the Important note.
<LEFT_SINGLE_CODE>(A:CAMERA STATE, number) 2 == if{ 1 (>A:CAMERA VIEW TYPE AND INDEX:0, enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:1, number) }</LEFT_SINGLE_CODE>
This code where I use 2 (Important note has Pilot=2) (pilot camera view) goes to Landing view, not close or pilot
<LEFT_SINGLE_CODE>(A:CAMERA STATE, number) 2 == if{ 1 (>A:CAMERA VIEW TYPE AND INDEX:0, enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:1, number) }</LEFT_SINGLE_CODE>
maybe the important note should be
IMPORTANT! If the camera type is 1 (for the Pilot view type), then the 4 default options will be indexed 1 (Pilot), 2 (Landing), 3 (Pilot), 4 (Copilot), and 5 (Copilot), and the SimVar CAMERA_VIEW_TYPE_AND_INDEX_MAX
will return +1 for the number of options (ie: 6 not 5 by default). This is due to the internal requirements of the code.
I know these are the values as the Landing get highlighted when the code is activated., Copilot does not get highlighted.
Close is missing?
3 seems to go back to pilot
Repro steps:
oh and the camera bug where the pilot type is locked and will not drop down is still an issue. A flight restart will show the drop down for Pilot views
Attachments:
Private attachments: Send a PM to @PrivateContent with the link to this topic and the link to download your content