Skip to content

Commit

Permalink
Merge pull request #603 from chrisriteco/AutoSwitchDualFix2FixSpeedBased
Browse files Browse the repository at this point in the history
Autoswitch Dual to Fix speed based
  • Loading branch information
FantasyTeddy authored Jan 22, 2025
2 parents 55e1be4 + 73a2df2 commit 9c5bf27
Show file tree
Hide file tree
Showing 9 changed files with 272 additions and 79 deletions.
10 changes: 9 additions & 1 deletion SourceCode/GPS/Classes/CAHRS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ public class CAHRS
public double rollFilter;

//is the auto steer in auto turn on mode or not
public bool isAutoSteerAuto, isRollInvert, isReverseOn;
public bool isAutoSteerAuto, isRollInvert, isDualAsIMU, isReverseOn;

// AutoswitchDualFix
public bool autoSwitchDualFixOn;
public double autoSwitchDualFixSpeed;

//the factor for fusion of GPS and IMU
public double forwardComp, reverseComp, fusionWeight;
Expand All @@ -40,6 +44,10 @@ public CAHRS()
isRollInvert = Properties.Settings.Default.setIMU_invertRoll;

isReverseOn = Properties.Settings.Default.setIMU_isReverseOn;

autoSwitchDualFixOn = Properties.Settings.Default.setAutoSwitchDualFixOn;

autoSwitchDualFixSpeed = Properties.Settings.Default.setAutoSwitchDualFixSpeed;
}
}
}
18 changes: 18 additions & 0 deletions SourceCode/GPS/Culture/gStr.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions SourceCode/GPS/Culture/gStr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -969,4 +969,10 @@ USE AT OWN RISK.</value>
<data name="v_SteerSettingsForm" xml:space="preserve">
<value>https://www.youtube.com/watch?v=3SdvYgx8HHc</value>
</data>
<data name="gsAutoSwitchDualFix" xml:space="preserve">
<value>Auto Dual &lt;&gt; Fix</value>
</data>
<data name="gsAutoSwitchDualFixSpeed" xml:space="preserve">
<value>Switch speed (km/h)</value>
</data>
</root>
36 changes: 36 additions & 0 deletions SourceCode/GPS/Forms/Position.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 50 additions & 4 deletions SourceCode/GPS/Forms/Settings/ConfigData.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c5bf27

Please sign in to comment.