2010Jun EP log: Difference between revisions
m 2010Jun EP moved to 2010Jun EP log |
Monnierast (talk | contribs) |
||
Line 1: | Line 1: | ||
== Notes == | == Notes == | ||
03jun10 | |||
removed Whichsystem.h and definition moved in DSPCommands.h. | |||
Changed all the includes referring rtai to native. | |||
Changed references to sem to interrupt (we now use dirctly in user space the interrupts from the astropci card to start data transfer). | |||
Installed intrrupt handler in place of semaphore handler. | |||
All printf in real-time code transformed in rt_printf. | |||
// blocking interrupt handler | |||
err = rt_intr_wait(&intr_desc, TM_INFINITE); | |||
if ((0 >= err) && (ks == C_RUN)) { | |||
rt_printf("Timeout on data interrupt!!!\n"); | |||
exc.cmd = C_IDLE; | |||
break; | |||
} | |||
rt_task_sleep(500000); /* Sleep for .5 ms */ | |||
rt_intr_enable (&intr_desc); | |||
rt_task_sleep(2000000); /* Sleep for 1 ms */ | |||
first delay (ms) second delay(ms) result | |||
0.1 0.5 hang mirkwood after 9 cycles | |||
0.5 0.5 no image crash after 4 cycles | |||
0.5 0.8 hang mirkwood after 11 cycles | |||
0.5 1.0 recoverable crash after 8 cycles | |||
0.5 2.0 recoverable crash after 1 cycle | |||
1.0 0.5 crash when use background | |||
1.0 0.6 crash at first take bkgnd | |||
[[Image:champfrontview1.jpg|400px|Image of CHAMP on 2010Jun06]] | [[Image:champfrontview1.jpg|400px|Image of CHAMP on 2010Jun06]] | ||
[[Image:mircfrontview1.jpg|400px|{Image of MIRC on 2010Jun06}]] | [[Image:mircfrontview1.jpg|400px|{Image of MIRC on 2010Jun06}]] |
Revision as of 19:07, 30 July 2010
Notes
03jun10 removed Whichsystem.h and definition moved in DSPCommands.h. Changed all the includes referring rtai to native. Changed references to sem to interrupt (we now use dirctly in user space the interrupts from the astropci card to start data transfer). Installed intrrupt handler in place of semaphore handler. All printf in real-time code transformed in rt_printf.
// blocking interrupt handler err = rt_intr_wait(&intr_desc, TM_INFINITE);
if ((0 >= err) && (ks == C_RUN)) { rt_printf("Timeout on data interrupt!!!\n"); exc.cmd = C_IDLE;
break;
}
rt_task_sleep(500000); /* Sleep for .5 ms */ rt_intr_enable (&intr_desc); rt_task_sleep(2000000); /* Sleep for 1 ms */
first delay (ms) second delay(ms) result
0.1 0.5 hang mirkwood after 9 cycles
0.5 0.5 no image crash after 4 cycles
0.5 0.8 hang mirkwood after 11 cycles
0.5 1.0 recoverable crash after 8 cycles
0.5 2.0 recoverable crash after 1 cycle
1.0 0.5 crash when use background
1.0 0.6 crash at first take bkgnd