Add feedrate previews

Calculate feedrate approximations based on user input, displayed next to user input.
This commit is contained in:
lawgicau
2021-07-20 22:17:58 +10:00
parent ae2e362ac6
commit 191f1837a6
4 changed files with 21 additions and 3 deletions

View File

@ -103,6 +103,14 @@ function toggleJ() {
}
}
function updateFeeds(formName) {
var feedrate = formName.baseFeedrate.value;
$('.perimFeed').html(Math.round(feedrate*0.6));
$('.solidFeed').html(Math.round(feedrate*0.8));
$('.travelFeed').html(Math.round(feedrate*1.67));
$('.firstFeed').html(Math.round(feedrate*0.5));
}
function processGcode(formName) {
var name = formName.name;
var description = formName.description.value;