Non arduino code
Non arduino code
I applaying MultiWii code for non arduino board made by my self, so that I am using only alorithms for control of cuadropoter. Do you think that it would be good idea to make parallel project which conatins .c and .h files, or add preprocessor directives #ifdef ARDUINO/NONARDUINO to existing files?
Re: Non arduino code
depends on your goals and implications for original MWii code base.
If you want to create a separate branch with other features and not tied to the main MWii code base, then it may be easier to start with the baseflight code. I have no experience with that code, so it is pure hearsay.
Else if you want to stay in sync with the main MWii code base, then you will have to evaluate the #ifdef route. It may turn the code ugly to read? I guess you would have to try. Depending on the extent of #ifdef (among other aspects) it may or may not make it into the main branch.
For the curious mind, what hardware do you run?
If you want to create a separate branch with other features and not tied to the main MWii code base, then it may be easier to start with the baseflight code. I have no experience with that code, so it is pure hearsay.
Else if you want to stay in sync with the main MWii code base, then you will have to evaluate the #ifdef route. It may turn the code ugly to read? I guess you would have to try. Depending on the extent of #ifdef (among other aspects) it may or may not make it into the main branch.
For the curious mind, what hardware do you run?
Re: Non arduino code
I've made my own hardware (based on m328), but in future I will apply it on other mcu's, so thatit might be usefull to make code in C which could be easily adaptable for every platform.
Non arduino code
What is m328? Or do you mean atmega328