-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The settings object will interface to all the configurable parameters across the tool, allowing for easy saving & restoring of configurations.
- Loading branch information
1 parent
ba19fc7
commit 3d39653
Showing
9 changed files
with
219 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
using OpenTK; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Drawing.Design; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace GUI | ||
{ | ||
/// <summary> | ||
/// Collects all settings and exposes them through one class. | ||
/// </summary> | ||
public class Settings | ||
{ | ||
private Robot.Robot robot; | ||
private Router.Router router; | ||
public Settings(Robot.Robot robot, Router.Router router) | ||
{ | ||
this.router = router; | ||
this.robot = robot; | ||
} | ||
|
||
|
||
/// | ||
/// Accessors for the property grid | ||
/// | ||
[DisplayName("Last Pass Height")] | ||
[Description("Height of the last pass in inches")] | ||
public float LastPassHeight | ||
{ | ||
get { return router.LastPassHeight; } | ||
set { router.LastPassHeight = value; } | ||
} | ||
|
||
[DisplayName("Tool Diameter")] | ||
[Description("Tool Diameter in inches")] | ||
public float ToolDiameter | ||
{ | ||
get { return router.ToolDiameter; } | ||
set { router.ToolDiameter = value; } | ||
} | ||
|
||
[DisplayName("Move Height")] | ||
[Description("Safe travel height")] | ||
public float MoveHeight | ||
{ | ||
get { return router.MoveHeight; } | ||
set { router.MoveHeight = value; } | ||
} | ||
|
||
[DisplayName("Max Cut Depth")] | ||
[Description("Maximum Cut Depth")] | ||
public float MaxCutDepth | ||
{ | ||
get { return router.MaxCutDepth; } | ||
set { router.MaxCutDepth = value; } | ||
} | ||
|
||
|
||
|
||
[DisplayName("Cutting Speed")] | ||
[Description("Cutting Speed (inches per minute)")] | ||
public float RoutSpeed | ||
{ | ||
get { return robot.MaxCutSpeed; } | ||
set { robot.MaxCutSpeed = value; } | ||
} | ||
|
||
[DisplayName("Moving Speed")] | ||
[Description("Rapid movement speed (inches per minute)")] | ||
public float MoveSpeed | ||
{ | ||
get { return robot.MaxRapidSpeed; } | ||
set { robot.MaxRapidSpeed = value; } | ||
} | ||
|
||
[DisplayName("Max Z Speed")] | ||
[Description("Maximum possible Z axis speed (inches per minute)")] | ||
public float MaxAxisSpeeds | ||
{ | ||
get { return robot.MaxZSpeed; } | ||
set { robot.MaxZSpeed = value; } | ||
} | ||
} | ||
} |
Oops, something went wrong.