From 9c23fcbabb6764c19ca98b60b1f31fd79f1c8f31 Mon Sep 17 00:00:00 2001 From: TQ Hirsch Date: Fri, 15 Apr 2022 17:56:42 +0200 Subject: [PATCH] Started to move to submodule-based setup, to test motion control outside of firmware --- firmware/Cargo.lock | 2 +- firmware/Cargo.toml | 10 ++-------- firmware/jerk_control/Cargo.toml | 8 ++++++++ firmware/{ => jerk_control}/src/main.rs | 0 firmware/{ => jerk_control}/src/motion/planner.rs | 0 5 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 firmware/jerk_control/Cargo.toml rename firmware/{ => jerk_control}/src/main.rs (100%) rename firmware/{ => jerk_control}/src/motion/planner.rs (100%) diff --git a/firmware/Cargo.lock b/firmware/Cargo.lock index 53e3c93..0e22394 100644 --- a/firmware/Cargo.lock +++ b/firmware/Cargo.lock @@ -3,5 +3,5 @@ version = 3 [[package]] -name = "film-scanner-fw" +name = "jerk_control" version = "0.1.0" diff --git a/firmware/Cargo.toml b/firmware/Cargo.toml index 94beeac..a9e0ceb 100644 --- a/firmware/Cargo.toml +++ b/firmware/Cargo.toml @@ -1,8 +1,2 @@ -[package] -name = "film-scanner-fw" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] +[workspace] +members = [ "jerk_control" ] diff --git a/firmware/jerk_control/Cargo.toml b/firmware/jerk_control/Cargo.toml new file mode 100644 index 0000000..8b68b77 --- /dev/null +++ b/firmware/jerk_control/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "jerk_control" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/firmware/src/main.rs b/firmware/jerk_control/src/main.rs similarity index 100% rename from firmware/src/main.rs rename to firmware/jerk_control/src/main.rs diff --git a/firmware/src/motion/planner.rs b/firmware/jerk_control/src/motion/planner.rs similarity index 100% rename from firmware/src/motion/planner.rs rename to firmware/jerk_control/src/motion/planner.rs