At my lab we have the goal of replacing the crazyflie firmware. Briefly, we want to get rid of FreeRTOS and bitcraze controllers, and only use the provided drivers.
Right now I'm trying to create a basic program which should just start some leds. This is my main.c file:
Code: Select all
#include <led.h>
int main() {
ledInit();
ledTest();
return 0;
}
- M2 blue led gets lit on
- After a little moment, M4 and M1 red leds get lit on (the blue one still on).
However that's not what the ledTest routine should do.
I checked the original main.c file, and platforimInit is called. The problem is that we want to start from zero, hence I only want to call the essential functions that will allow us to work.
Well, my question is: Do I need to call some other function before being able to play with the leds? Is there another one for the motors?
Even if this functions call the FreeRTOS, I'ld appreciate knowing which ones are mandatory for the code in my example to work.
Thank you.