Commit Graph

46 Commits

Author SHA1 Message Date
melfely 50c77f7200 Update Readme.md 2026-07-04 15:33:25 +00:00
melfely b85d168b8e More license stuff Added to Cargo.toml 2026-07-04 15:28:08 +00:00
melfely f19b486cd0 Updated Readme 2026-07-04 15:25:48 +00:00
melfely 56acf0f9a1 Added Notice for Apache 2.0 License 2026-07-04 15:24:35 +00:00
melfely 8731f8eeba Actually add the Apache 2.0 license file 2026-07-04 15:23:58 +00:00
melfely 7181dac88c Actually add the Mit license file 2026-07-04 15:23:05 +00:00
melfely 5b69c961d2 Actually add the Mit license file 2026-07-04 15:19:03 +00:00
melfely 3d2399aaea shorted comment length so no scroll bar 2026-06-28 08:03:24 -05:00
melfely 14fb0899f3 Verison bump to 0.3.0 2026-06-14 14:24:39 -05:00
melfely 3df2334b10 Changed over to async functions
changed over all the classes in these files to use async based methods
rather than non. This SHOULD make the system more reliable with embassy
in the future, and hopefully prevent issues with blocking code and the
way embassy works.
2026-06-14 14:24:08 -05:00
melfely 6ade7615a7 version bump. 2026-06-13 13:54:28 -05:00
melfely 16107036e7 Changed internal PID math
The system new reduces itself by 1000 internally before output,
hopefully making the precision much higher (IE NOT needing to use tiny
ass inputs to make anything reasonable)
2026-06-13 13:53:22 -05:00
melfely 19bbcfd7ab version bump 2026-06-13 12:12:23 -05:00
melfely ff448bf1af Added a retrieve method
This will let you get the speed from the motor directly without the
future communication system being needed
2026-06-13 12:11:31 -05:00
melfely 58eb647507 added docs comments for new method 2026-06-12 19:08:07 -05:00
melfely 8631d9d2a1 Fixed a new() issue
where it took in a PID rather than a pid::PID rather than a pid::PID

Version Bump to 0.2.2
2026-06-12 19:07:37 -05:00
melfely eb7d4ca59a Version bump 2026-06-12 19:01:19 -05:00
melfely e0e987f072 Added new method for the controller struct. 2026-06-12 19:00:16 -05:00
melfely 21768597a4 Registry Change and Verison Bump 2026-06-12 18:48:16 -05:00
melfely 7f1018bb8b Changed Motor::Controller from a trait to a Struct
I realized that I was trying to do inheirtance rather than composition which is the rust way.
This should be a much bet
2026-06-12 18:36:54 -05:00
melfely f9bf19936b Added derive fields to the Data and PID struct 2026-06-09 19:14:40 -05:00
melfely 123f7f7030 forgot to bump version 2026-06-09 18:32:09 -05:00
melfely 44f9e6fed8 added comment about signage for direction 2026-06-09 18:31:32 -05:00
melfely b5cfb228f7 version bump 0.1.2 2026-06-07 14:19:59 -05:00
melfely b79f5af105 remove .abs from PID output 2026-06-07 14:19:03 -05:00
melfely f0fb793812 version bump to 0.1.1 2026-06-07 13:33:27 -05:00
melfely 851ea6c370 PID fixes.
There was no way to create a PID, becuase of the private fields

I also fixed a divide by 0.0 bug that was 100% going to bite me later if I did not.
2026-06-07 13:32:20 -05:00
melfely 15c0512fef Added a comment for PID struct 2026-06-07 12:50:15 -05:00
melfely 897678bb26 Added derive for PID config fields.
This is so these config fields can be stored as JSON
2026-06-07 12:43:57 -05:00
melfely 35fd1e8532 cargo fmt 2026-06-07 00:36:22 -05:00
melfely 2eae22cb9b Added main logic for PID system and motor system
Quite a bit of the important logic bits have been added for the Controller Trait, and the PID system.
2026-06-07 00:35:15 -05:00
melfely 96bf48095e removed "raw" from motor speed control names 2026-06-07 00:29:58 -05:00
melfely 39192e40f7 setup basic lib.rs file for the main options 2026-06-06 23:59:43 -05:00
melfely db6abc901d Added direction From<I> for i32 and f32
These will be used to easily convert number signs to CCW and CW. Rather than needing to manually do it in each case.

There are also two functions that are present to assist in updating existing direciton variables directions to new ones while handling 0 and NaN in a more intellligient way
2026-06-06 23:56:21 -05:00
melfely 35d30bd213 Motor logic area has been started. 2026-05-24 12:11:37 -05:00
melfely da5431f5f7 Added floating point support for the current and voltage handles.
I do need to implement the Angle stuff.
2026-05-24 11:38:50 -05:00
melfely 42f20b303d readme and comment changes 2026-05-24 10:38:51 -05:00
melfely d9f11b3f8e commented the plan for the for what the sensor trait methods will do. 2026-05-24 10:37:42 -05:00
melfely 1e5f8c15e4 created a generic "units" module, which should be helpful in keeping certain units Correct. 2026-05-24 10:34:40 -05:00
melfely 0846808a4a removed all current communication code. Upper level main core code should be made first.
Upper level Core code, will also all be serde compatible anyways.

Added in alot of comments to many methods and structs for core::motors

Added in a Enum for each major data which will also support conversions from and to more useful dataTypes
2026-05-23 20:59:36 -05:00
melfely 450ea8da91 removed #[repr(u8)] from many structs across the project, I found out that rust by default makes small structs u8s, it is uneeded to do it manually. 2026-05-23 19:58:13 -05:00
melfely a72efcfead updated positional traits to public, so its not upset about dead code. 2026-05-23 18:43:27 -05:00
melfely b7393971e2 Moved some of the things from the "communicatinon" subsection of core directly into core. This is because some of these structs will be needed for logic as well. 2026-05-23 17:45:06 -05:00
melfely eb29b97f9b changed the structure of core::communication.
I think the implementation of the positional.rs is good
2026-05-23 13:59:32 -05:00
melfely 8917d1f81c The starting points have been created. Sweet! 2026-05-22 22:15:10 -05:00
melfely f6dde557bb project started and converted to a lib crate 2026-05-22 21:06:15 -05:00