|
54 | 54 |
|
55 | 55 | <br> |
56 | 56 |
|
57 | | - <div ng-disabled="!conn" class="bed-measurement-tools"> |
58 | | - <label>Bed width: <input ng-disabled="!conn" ng-model="bed.width" type="number"></label><br> |
59 | | - <label>Bed height: <input ng-disabled="!conn" ng-model="bed.height" type="number"></label><br> |
60 | | - <label>Padding from edge of bed: <input ng-disabled="!conn" ng-model="bed.padding" type="number"></label><br> |
61 | | - <label>Number of X/Y points: <input ng-disabled="!conn" ng-model="bed.points" min="3" step="2" type="number"></label><br> |
| 57 | + <div ng-disabled="!conn || mode == 'mapping'" class="bed-measurement-tools"> |
| 58 | + <label>Bed width: <input ng-disabled="!conn || mode == 'mapping'" ng-model="bed.width" type="number"></label><br> |
| 59 | + <label>Bed height: <input ng-disabled="!conn || mode == 'mapping'" ng-model="bed.height" type="number"></label><br> |
| 60 | + <label>Padding from edge of bed: <input ng-disabled="!conn || mode == 'mapping'" ng-model="bed.padding" type="number"></label><br> |
| 61 | + <label>Number of X/Y points: <input ng-disabled="!conn || mode == 'mapping'" ng-model="bed.points" min="3" step="2" type="number"></label><br> |
62 | 62 | <!-- <label>Number of X points: <input ng-model="bed.pointsX" min="3" step="2" type="number"></label><br> --> |
63 | 63 | <!-- <label>Number of Y points: <input ng-model="bed.pointsY" min="3" step="2" type="number"></label><br> --> |
64 | | - <button ng-disabled="!conn" ng-click="runBedMeasurement(bed)">Run</button> |
| 64 | + <button ng-disabled="!conn || mode == 'mapping'" ng-click="runBedMeasurement(bed)">Run</button> |
65 | 65 | <button ng-disabled="!conn" ng-click="probePoints = []">Cancel</button> |
66 | 66 | </div> |
67 | 67 | <br> |
| 68 | + |
| 69 | + <progress ng-show="mode == 'mapping' && currentProbePoint.mappingDetails.total" min="0" max="{{currentProbePoint.mappingDetails.total}}" value="{{currentProbePoint.mappingDetails.index}}"></progress> |
| 70 | + <div ng-show="mode == 'mapping' && currentProbePoint.mappingDetails.total" class="progress-text">Probing position {{currentProbePoint.mappingDetails.index}} of {{currentProbePoint.mappingDetails.total}} - X:{{currentProbePoint.x + currentProbePoint.mappingDetails.padding}} Y: {{currentProbePoint.y + + currentProbePoint.mappingDetails.padding}}</div> |
| 71 | + |
| 72 | + <div ng-show="mode == 'mapping' && !currentProbePoint.mappingDetails.total" class="pre-mapping-text">Setting abosulute positioning, and homing machine</div> |
| 73 | + <br> |
68 | 74 | <br> |
69 | 75 | <br> |
70 | 76 | <button ng-click="loadBedMap()">Load Bed map</button> |
|
0 commit comments