This commit is contained in:
Frederik Menke 2023-12-17 17:55:37 +01:00
parent cb64502a02
commit b72c601a25
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,23 @@
use super::*;
/// Relative Positioning
#[derive(Debug)]
pub struct G90Command;
impl GcodeCommand for G90Command {
fn command(&self) -> String {
"G90".into()
}
fn parse_reply(&self, reply: &str) -> Result<GcodeReply> {
if !reply.is_empty() {
Err(GcodeReplyError {
sent_command: self.command(),
parsed_input: reply.to_string(),
problem: "Expected no reply".to_string(),
})
} else {
Ok(GcodeReply::NoReply)
}
}
}

View file

@ -11,11 +11,13 @@
/// ``` /// ```
mod g0; mod g0;
mod g28; mod g28;
mod g90;
mod g91; mod g91;
mod m114; mod m114;
mod m997; mod m997;
pub use g0::G0Command; pub use g0::G0Command;
pub use g28::G28Command; pub use g28::G28Command;
pub use g90::G90Command;
pub use g91::G91Command; pub use g91::G91Command;
pub use m114::M114Command; pub use m114::M114Command;
pub use m997::M997Command; pub use m997::M997Command;