Hi, I want to get into the Arducopter a FreeRTOS based real time operating system for Arduino compatible boards, I'd thought in DuinOS. But I don't know if I can put it because I've read that does not support ATmega2560. Can anyone tell me if this is so and how I could get this.
Thanks
Replies
Not sure it would be beneficial to the code efficiency. A task sheduler take some ressources for task switching.
In a AVR realtime design i did a few years ago, i decided to not use a realtime OS for code simplicity and efficiency.
I think that small 8 bits processors are not designed for such OS. One of the benefit could be code profiling, but available tools seems quite limited and anyway activating code profiling is most of the time not possibile because too much ressource hungry.
It would be certainly better to study the actual code, and see if it would be possible to split some parts in the ppm encoder to speed up things with multiprocessing, or eventually for a futur hardware version, think to a parallel processing circuit (FPGA) to put high speed and simple tasks in it.
http://www.bertos.org/
FreeRTOS in Gluonpilot:
http://www.diydrones.com/profiles/blog/show?id=705844%3ABlogPost%3A...
Maybe this could help.