Multitasking
Hello, I would like to continue my program by doing multitasking.
As you know, after I finished with the steering, I programmed myself the throttle function.
The program simply read the PWM signal from the throttle channel pwm signal, then process it to flash several LEDs.
Two things I noticed here:
1. Both steering and throttle triggers are almost all the time pressed together, but the LEDs, although they are located at different port, A0, A1, A2, etc., the left/right blinking and throttle forward blinking signals cannot executed at the SAME TIME.
2. I have a flashing command takes around 5s to be executed until finished, I don't want to have this, I want to have a flashing command, like a loop, only when the throttle trigger is pressed. So, it comes into a conclusion that the led only switched on when there is a signal and it could be finished either at 2nd 3rd or 4th second, not necessary up to 5th second.
My colleague told me about the multitasking with software approach, hope somebody can give me clue regarding this, what do I need, how do I set those up. Thanks!