Added a command to check if the stage is moving
This commit is contained in:
parent
edd0246cc5
commit
4cf54971a2
2 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@
|
||||||
.vscode/c_cpp_properties.json
|
.vscode/c_cpp_properties.json
|
||||||
.vscode/launch.json
|
.vscode/launch.json
|
||||||
.vscode/ipch
|
.vscode/ipch
|
||||||
|
.venv/
|
||||||
|
|
@ -267,6 +267,12 @@ void stage_stop(String command)
|
||||||
Serial.println("Move aborted");
|
Serial.println("Move aborted");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void is_stage_moving(String command)
|
||||||
|
{
|
||||||
|
//TODO: should I bother checking for a ?
|
||||||
|
Serial.println(stage_moving?"true":"false");
|
||||||
|
}
|
||||||
|
|
||||||
//TODO: move help strings to program memory
|
//TODO: move help strings to program memory
|
||||||
//F() cannot be used outside block context though
|
//F() cannot be used outside block context though
|
||||||
extern const Command stage_commands[] = {
|
extern const Command stage_commands[] = {
|
||||||
|
|
@ -279,6 +285,7 @@ extern const Command stage_commands[] = {
|
||||||
{"ramp_time", stage_ramp_time},
|
{"ramp_time", stage_ramp_time},
|
||||||
{"min_step_delay", stage_min_step_delay},
|
{"min_step_delay", stage_min_step_delay},
|
||||||
{"dt", stage_min_step_delay},
|
{"dt", stage_min_step_delay},
|
||||||
{"zero", stage_min_step_delay},
|
{"zero", stage_zero},
|
||||||
{"stop", stage_stop},
|
{"stop", stage_stop},
|
||||||
|
{"moving", is_stage_moving},
|
||||||
END_COMMAND};
|
END_COMMAND};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue