Skip to content

Commit

Permalink
GimbalControlSettings: implement default yaw lock setting
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong13 committed Oct 11, 2024
1 parent 0fcc32d commit 6cd30be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Controls/GimbalControlSettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ public GimbalControlSettings()
CameraVFOV = 30.0m; // vertical, degrees

// Default boolean options
DefaultLockedMode = false;
UseFOVReportedByCamera = true;
DefaultLockedMode = false;
}

public GimbalControlSettings(GimbalControlSettings other)
Expand Down
2 changes: 2 additions & 0 deletions Controls/GimbalVideoControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public GimbalVideoControl()

loadPreferences();

yaw_lock = preferences.DefaultLockedMode;

// Register the global key handler
Application.AddMessageFilter(this);

Expand Down

0 comments on commit 6cd30be

Please sign in to comment.