PURSUIT & TIE
  • Home
  • About
  • Electrical
  • Mechanical
  • Software
    • Driving Service
    • Motor Service
    • Gear Service
    • Counter Service
    • Activity Service
    • LED Service
    • Audio
  • Other
    • BOM
    • Gems of Wisdom

Motor Service Software Design

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

Picture

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
Download File


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
Download File

Powered by Create your own unique website with customizable templates.
  • Home
  • About
  • Electrical
  • Mechanical
  • Software
    • Driving Service
    • Motor Service
    • Gear Service
    • Counter Service
    • Activity Service
    • LED Service
    • Audio
  • Other
    • BOM
    • Gems of Wisdom