|
TEAMS Academy Wiki
Explore TEAMS!
for visiting sophomores & juniors
Robotics
EnvBioTech
Bat Design
Assistive Tech
Students
Instructors
TEAMS Forum
TEAMS Calendar
TEAMS Web Site
Wiki Info
edit Student.SideBar
|
Max and Chris' Egg Hunt Pownage
Initial Planning Stage -- Areas of Concentration --Design Modules
- Sensing
- Light
- Range
- Top Secret Super Duper Sensor
- Locomotion
- Collection
- Operation Clepto
- Sorting and Operation Desert Storm
- Scoring
- Integration
- Physical Space
- Collection, Sensing, and Scoring
- Power Capacity Concerns
- Sensor Space
- Sensing & Internal Sensors
- Processing Power
Plan
Max
- Finished Wall Following
- Functions:
- int rng_v (void)
- integer returning function that returns the amount by which the Create's velocity should be corrected
- collects range sensor data
- scales and translates it so that it resembles adequate velocity correction number
- uint8_t safe (void)
- returns 0 if not safe
- returns 1 if everything is fine
- returns 2 if the create is detecting a virtual wall
- MAIN
- while play hasn't been pressed
- call rng_v() store return value in int
- use that int to adjust drive direct
- call safe() and react accordingly
- check if play pressed, and set var that controls while loop accordingly
- Functionality:
- Works well, can see room for imprtovement with derivative control
- Thought up some Range sensor code, using edge detection. No official lines of code, but a strong mental image of the flowchart. (:D)
- Servo+Range sensor
- On edge, stop servo and send other direction.
- Make sure code does not get ahead of servo
|