-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone library usage without Arduino #427
Comments
Hi, @runger1101001 and @askuric might have a better answer, but here are my 2 cents. Someone started a few months ago to port SimpleFOC to Rust, and I believe he had to spend a lot of time learning motor control theory first. |
Thanks for your comment @Candas1 :) Optimally this would look this:
STM Motor Workbench looks nice but then I could not use modm. This is why it would be nice to have a (minimal) decoupled version (from Arduino) of simple-foc. Optimally this version should be able to profit from upstream changes to simple-foc. |
Let's take an example. |
In modm all pin configurations are compile time values. using ADC_TO_USE = Adc1;
using GPIO_TO_USE = GpioA0::In1;
// this line actually does a compile-time check that the GPIO and adc fit together (otherwise compile error):
ADC_TO_USE::connect<GPIO_TO_USE>();
// ... You could write a But I think it would be sufficient to just manually define this and manually setup the adc correctly using modm. Thus I just need a "generic" interface for simple-foc that is independent of the HAL used. |
I think the library now relies on the arduino framework in many different areas:
You could stripping the library from all the drivers you don't need and focus on pwm/open loop for now. |
Thanks @Candas1. |
I am not saying we will do it, there are other priorities. |
Yes I meant that I would try it (I was not expecting that someone else would attempt this, since this is a small use case 😅 ) |
OK I missunderstood 😂 |
Hi, I really like this project but its dependency on the Arduino library currently hinders me from using it.
I know the project name is
Arduino-FOC
but I was wondering if it would be possible to use parts of this library without the Arduino dependency and just cmake as the build system.The use case is that I want to use this library with another hardware abstraction framework that is more low-level than Arduino, e.g. just stm32 HAL or modm.
Are there already attempts for doing this or does someone have an idea how this could be done?
The text was updated successfully, but these errors were encountered: