-
Hi Gruz
Untill now I didn´t find a better way to solve it unless using get() methods.
Such accessed variables are changed only inside its AO´s rtc,
so I understand it is safe do read them.
Well, its working fine untill know..:):)
By the way, my whole design (21 objects) are working perfectly...QP really performs a nice and **reliable** job....
Good luck..
Ricardo Raupp.
2009-09-25 12:51:37 UTC in QP State Machine Frameworks
-
In similar situation on the past, I had problems using very small stack size (very small mcus..)
After I´ve increased the stack area my problem disappeared..
Ricardo Raupp.
2009-07-02 18:07:28 UTC in QP State Machine Frameworks
-
Manbro
In a very quick thought:
Timers inject events into objects.
Could your obejct , in a certain not predicted situation, not consuming these timer generated events ?.. could the timer inject events into a not available (fully) queue?leading it to a crash?
Good luck...
Ricardo Raupp.
2009-07-01 16:37:42 UTC in QP State Machine Frameworks
-
Hi guys
I have '2' serial ports wich interrupts every 250uS.
At this moment of design, instead of posting an event for each received byte (psicc approach) , the rx ISR injects the data (1 byte) directly into the uart buffer(storage of a orthogonal component - uart_rx).
I realized that sometimes 1 byte is not injected into the buffer, that is, it is missed.
Therefore the parser routine...
2009-06-23 05:01:19 UTC in QP State Machine Frameworks
-
Miro
I think I was unhappy in my comment #3 about my application example.
I didn´t neeed ( In fact, I MUST NOT do!) to make a (ordinary) call to start the log transmission, but post a event to the log_dispatcher machine, right? It will be safe since the thread in charge of log the event will be finished (RTC) *before* the log_dispatcher handled the event posted by it and so start the...
2009-06-11 19:13:17 UTC in QP State Machine Frameworks
-
Miro
I read all sources you mentioned.
Summarizing I undesrtood:
1- The best *possible* to do is handle the event in the substante BUT force a IGNORED signal as returning value, in order upper states can have the chance to *also* handle it.
2- The best way to represent it in a UML fashion is by depicting it along guards
3- Once you mentioned:
" Please note, however, that the...
2009-06-09 19:40:19 UTC in QP State Machine Frameworks
-
Helllo guys
I have a HSM wich handles 15 events (e1..e15).
This HSM has 5 same level substates: s1 to s5 (inside s).
Four (e1..e4) of these 15 events should be handled by any substate (s1 to s5), BUT if the states is s1,
these events cause extra function calling.
I thought:
The state s1 will handle the events e1--e4 like:
QState log::on_s1(...
{
case e1..e4:
f1();
f2();.
2009-06-09 14:11:04 UTC in QP State Machine Frameworks
-
Exactly Miro..I´m communicating a CPU with a external GPS module...
a)
I´ve read many pages of UML and I´m trying to draw my system according to UML diagrams, specially Class ans State diagrams.
I read about association x aggregation x dependency x composition,etc,etc.
I got confused a bit when I tried to draw this GPS case thinking on its UML represenation.
How would you draw these...
2009-06-01 17:00:38 UTC in QP State Machine Frameworks
-
Hi guys
I created a GPS object wich, besides its own state machine, must have 2 more state machines for RX and TX serial channels.
I understood TX and RX machines must be indepenedent BUT are hierarquically below the GPS object (*belong* to it?).
Is this the case to use orthogonal components approach?
Could someone give me a "light" about to draw this struct?
Thanks
Ricardo...
2009-06-01 13:26:24 UTC in QP State Machine Frameworks
-
Miro
After some advances I´m facing some troubles yet..
Making my special events "derived in C style:
Ex.
struct event_lcd_test // C style inheritance QEvent
{
QEvent super;
uint8 test;
}
enabled me to use const static initialization:
static event_lcd_test const aa=
{EVENT_LCD_INIT_DONE,0,0,1};
since my compiler doesn´t implement this kind of...
2009-06-01 00:46:20 UTC in QP State Machine Frameworks