Description
The Motor Service senses changes in the steering wheel and communicates those changes to the Driving Service to determine where the car should be pointed. Instead of mapping the angle of the steering wheel directly to the car's direction, the car will continuously turn in whatever direction the agent is steering in. For example, if the wheel is turned to the left of center, the car will keep turning left until the wheel is centered. The state diagram, pseudo-code, and code listing can be found below.
State Diagram
Pseudo-code
Your browser does not support viewing this document. Click here to download the document.
Header File
Your browser does not support viewing this document. Click here to download the document.
motorservice.h | |
File Size: | 0 kb |
File Type: | h |
C File
Your browser does not support viewing this document. Click here to download the document.
motorservice.c | |
File Size: | 7 kb |
File Type: | c |