Change how feed rate is controlled

This commit is contained in:
Skylar Grant 2023-01-06 18:33:44 -05:00
parent 7f58dc87ac
commit e6bcf90741
2 changed files with 8 additions and 3 deletions

View File

@ -54,8 +54,8 @@ app.post('/', (req, res) => {
}
if (req.body.reload != undefined) {
fn.commands.refreshConfig({
augerOff: 2000 - req.body.augerOn,
augerOn: req.body.augerOn,
augerOff: 2000 - req.body.feedRate,
augerOn: req.body.feedRate,
pause: req.body.pauseInt
});
}

View File

@ -15,7 +15,12 @@
<input class="button-unselected" type="submit" id="ignite" value="Enable Auger" name="start"><input class="button-unselected" type="submit" id="shutdown" value="Disable Auger" name="shutdown"><input class="button-unselected" type="submit" id="reload" value="Reload" name="reload"><br>
</div>
<!-- Set feed rates -->
<label for="augerOn">Auger On Interval: </label><input type="number" name="augerOn" min="500" max="1000" step="100" value="<%= intervals.augerOn %>">ms<br>
<label for="feedRate">Feed Rate: </label>
<select name="feedRate">
<option value="600">Low</option>
<option value="800">Medium</option>
<option value="1000">High</option>
</select>
<label for="pauseInt">App Pause Interval: </label><input type="number" name="pauseInt" min="1000" max="600000" step="1000" value="<%= intervals.pause %>">ms<br>
</form>
</div>