Author |
Message |
Topic: Finite State Machine , pointer to functn , transition table |
AshrafAbuBaker
Replies: 4
Views: 8765
|
Forum: General CCS C Discussion Posted: Thu Jan 08, 2015 5:17 am Subject: Finite State Machine , pointer to functn , transition table |
ok, Now it works
But do you know what was wrong with it ??
I only did this modification on the if statement
if ( ( ControlTable[i].init == Cur ... |
Topic: Finite State Machine , pointer to functn , transition table |
AshrafAbuBaker
Replies: 4
Views: 8765
|
Forum: General CCS C Discussion Posted: Thu Jan 08, 2015 5:09 am Subject: Finite State Machine , pointer to functn , transition table |
it can not enter if statement enless in the first row in state transition table, when it has to execute Do_nothing |
Topic: Finite State Machine , pointer to functn , transition table |
AshrafAbuBaker
Replies: 4
Views: 8765
|
Forum: General CCS C Discussion Posted: Thu Jan 08, 2015 3:34 am Subject: Finite State Machine , pointer to functn , transition table |
thanks alot you are the best.
your code have worked very well
but when i test mine with state_transition function
void state_transition (EVENT event)
{
int i=0;
int found=false; ... |
Topic: Finite State Machine , pointer to functn , transition table |
AshrafAbuBaker
Replies: 4
Views: 8765
|
Forum: General CCS C Discussion Posted: Wed Jan 07, 2015 6:55 am Subject: Finite State Machine , pointer to functn , transition table |
Hi every One,
i had working on this for two days and i didn't know what is wrong with my code.
i am trying to implement a finite state machine to control a relay.
i did this with transition table ... |
|