Skip to content

Commit

Permalink
Merge pull request #42 from araisrobo/master
Browse files Browse the repository at this point in the history
DigitalReadOut.qml: set default values for machine with 5+ axes
  • Loading branch information
machinekoder committed Jan 11, 2016
2 parents 238f8c9 + 6442b90 commit caed0e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/applicationcontrols/DigitalReadOut.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ ApplicationItem {
property var g5xNames: ["G54", "G55", "G56", "G57", "G58", "G59", "G59.1", "G59.2", "G59.3"]
property int g5xIndex: _ready ? status.motion.g5xIndex : 1
property var position: getPosition()
property var dtg: _ready ? status.motion.dtg : {"x":0.0, "y":0.0, "z":0.0, "a":0.0}
property var g5xOffset: _ready ? status.motion.g5xOffset : {"x":0.0, "y":0.0, "z":0.0, "a":0.0}
property var g92Offset: _ready ? status.motion.g92Offset : {"x":0.0, "y":0.0, "z":0.0, "a":0.0}
property var toolOffset: _ready ? status.io.toolOffset : {"x":0.0, "y":0.0, "z":0.0, "a":0.0}
property var dtg: _ready ? status.motion.dtg : {"x":0.0, "y":0.0, "z":0.0, "a":0.0, "b":0.0, "c":0.0, "u":0.0, "v":0.0, "w":0.0}
property var g5xOffset: _ready ? status.motion.g5xOffset : {"x":0.0, "y":0.0, "z":0.0, "a":0.0, "b":0.0, "c":0.0, "u":0.0, "v":0.0, "w":0.0}
property var g92Offset: _ready ? status.motion.g92Offset : {"x":0.0, "y":0.0, "z":0.0, "a":0.0, "b":0.0, "c":0.0, "u":0.0, "v":0.0, "w":0.0}
property var toolOffset: _ready ? status.io.toolOffset : {"x":0.0, "y":0.0, "z":0.0, "a":0.0, "b":0.0, "c":0.0, "u":0.0, "v":0.0, "w":0.0}
property double velocity: _ready ? status.motion.currentVel * _timeFactor : 0.0
property double distanceToGo: _ready ? status.motion.distanceToGo : 0.0
property bool offsetsVisible: settings.initialized && settings.values.dro.showOffsets
Expand All @@ -60,7 +60,7 @@ ApplicationItem {
basePosition = (positionFeedback == ApplicationStatus.ActualPositionFeedback) ? status.motion.actualPosition : status.motion.position
}
else {
basePosition = {"x":0.0, "y":0.0, "z":0.0, "a":0.0}
basePosition = {"x":0.0, "y":0.0, "z":0.0, "a":0.0, "b":0.0, "c":0.0, "u":0.0, "v":0.0, "w":0.0}
}

if (positionOffset == ApplicationStatus.RelativePositionOffset) {
Expand Down

0 comments on commit caed0e3

Please sign in to comment.