Download presentation
Presentation is loading. Please wait.
Published byPatience Higgins Modified over 8 years ago
2
Software Overview Walking Robot by Sharon Davis
3
Kernel MicroC/OSII
4
4 Tasks StartUp Task WalkForward Task Walk Task Sensor Task
5
WalkForward Task –Controls forward motion. –Priority 5 –Period: Sporadic –Execution Time: 1ms –CPU Load: Peak:.003 Average:.0016
6
Walk Task –Controls stop, reverse, turn and scanning. –Priority 6 –Period: Sporadic –Execution Time: 320ms –CPU Load: Peak:.5 Average:.05
7
Sensor Task –Controls what the robot does according to distance measurements, calculates distance and monitors sensors. –Priority 7 –Period: Periodic –Execution Time: 4.4μs –CPU Load:.000044
8
4 Interrupt Service Routines 4 Interrupt Service Routines –TOF Isr –RFTrigger Isr –RFEcho Isr –IR Isr
9
TOF Isr –Keeps track of number of times through the overflow. –Priority 1 –Period: Periodic –Execution Time:.625μs –CPU Load: Peak:.000006 Average:.000003
10
RFTrigger Isr –Signals Sensor Task –Priority 1 –Period: Periodic –Execution Time:.42μs –CPU Load:.000004
11
RFEcho Isr –Signals Sensor Task –Priority 1 –Period: Periodic –Execution Time:.5μs –CPU Load:.000005
12
IR Isr –Signals Sensor Task –Priority 1 –Period: Periodic –Execution Time:.375μs –CPU Load:.000004
13
2 Modules Walk Module - Controls walking, scanning and turning. Sensor Module - Houses Isr’s, calculates distances and monitors sensors.
14
Walk Module Public Functions and Data –Direction() –OSSemPend(RFScanFlag) –OSSemPend(ReverseFlag) –WalkFlag –Range Tasks WalkForward Task Walk Task
15
Sensor Module Public Functions and Data –GetDistance() –OSSemPost(RFScanFlag) –OSSemPost(ReverseFlag) –Dist Tasks Sensor Task
16
Reused Code All the code used will be written by me, but I used many different references to get an overall idea of what I needed to do.
17
List of References Embedded Microcontrollers –by Todd Morton Mobile Robots –by Joseph L. Jones, Bruce A. Seiger and Anita M. Flynn Insectronics –by Karl Williams
18
My Most Valuable Resource Has been each of YOU!! Thank You!!
19
Dataflow Diagram Tasks Walk Task Walk Forward Task OSSemPost()OSSemPend() ForwardFlag Walk Task Global Walk Forward Task OSSemPost()OSSemPend() WalkFlag
20
Dataflow Diagrams Tasks Sensor Task Walk Task OSSemPost()OSSemPend() RFScanFlag Sensor Task Walk Task OSSemPost()OSSemPend() ReverseFlag 100ms
21
Dataflow Diagrams Tasks Sensor Task Walk Task OSSemPost() OSSemPend() DistFlag Global WriteRead Distance Buffer 100ms
22
Dataflow Diagrams ISR’s RFTrig Isr Sensor Task OSSemPost()OSSemPend() RFTrigFlag IOC0 Echo Isr Sensor Task OSSemPost()OSSemPend() EchoFlag IOC1 100ms
23
Dataflow Diagrams ISR’s IR Isr Sensor Task OSSemPost()OSSemPend() IRFlag IOC2 TOF Isr Buffer Sensor Task WriteRead Time Count TOF 100ms
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.