|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#14
|
|||||
|
|||||
|
Re: switching between Teleoperated enabled and Wathcdog notfed
The parallelism of the two tasks within the loop task has to be taken into account:
The timer task starts and goes away for 5ms The 1ms task starts and finishes, then it too goes away The loop task rests as all it's internal tasks are not yet satisfied, but it has nothing to do The CPU wakes up the loop task when the 5ms timer expires The loop task sees that all it's tasks are accomplished and moves on The timer task only stops itself. It doesn't stop tasks around it. It really sets a timer interrupt. If the Timer task expires and the loop task is still active because of other independent tasks within it the CPU doesn't have to wake it up and it doesn't get scheduled. Last edited by Mark McLeod : 21-03-2010 at 18:39. Reason: Added explicit steps |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem Switching Between Modes | Powerhawks Team 1111 | frenchie4111 | Programming | 4 | 19-01-2010 08:44 |
| Autonomous and Teleoperated | Technic-R-C | General Forum | 8 | 15-02-2009 16:04 |
| Switching between Autonomous and Teleoperated | Technic-R-C | National Instruments LabVIEW and Data Acquisition | 3 | 07-02-2009 08:55 |
| Autonomous and Teleoperated | Technic-R-C | NI LabVIEW | 2 | 06-02-2009 22:19 |
| Switching between Hybrid and User-Controlled | Zyklon | Programming | 3 | 13-02-2008 08:30 |