Transit 10 functions in sequence based on a timer using State Machine Framework
I created a sequence of 10 function
functionA, functionB, functionC, functionD ...
that i would like to transit sequencely based on a timer.
I do not know how to join them together using State machine framework.
I did many hours of reading and i still don't understand how to link them together. Please kindly help.
//Code i wrote myself, please kindly comment and assist.
QState *group=new QState();
//start at state level
QState *state1= new Qstate(function1);
QState *state2= new Qstate(function2);
QState *state3= new Qstate(function3);
QState *state4= new Qstate(function4);
//end at machine level
[edit: added missing coding tags @ SGaist]
What are function1 and friends ?
I like to transit sequentially from function1 to function10. The state Machine framework that i wrote, why is it not correct?
I understood why you wanted to do, however you didn't answer my question
@QState *state1= new Qstate(function1); << what is function1 ?@
function1 is 1st LED blinking
function2 is 2rd LED blinking.
function3 is 3 rd LED blinking.
i understand. Problem solved
So, what was the problem ?