Author Topic: Algorithm For Shooter Targeting  (Read 1749 times)

Saty E

  • Guest
Algorithm For Shooter Targeting
« on: January 21, 2016, 05:41:58 PM »
So Matt Spofford and I worked out a basic algorithm for targeting the shooter. It's still a WIP, so feel free to add anything below.

1. If goal found, tell user, and check that auto targeting is enabled. If not, inform user to enable auto targeting
2. Once auto targeting is enabled, move the shooter to the position such that the vision target is centered in the camera's frame
3. Once centered, prompt the user to shoot.

Louis L

  • Administrator
  • Hero Member
  • *****
  • Posts: 564
Re: Algorithm For Shooter Targeting
« Reply #1 on: January 22, 2016, 02:10:18 PM »
Here's what I have on the shooting algorithm.
https://docs.google.com/document/d/19dErwQkQNhwTQn1245P6sBKr26mg4QA88hRi5-Qyt8A/edit?usp=sharing

A few take-aways as I went through that exercise.
  • Integration with the UI is important. Think about what the UI needs to give/get to/from the roboRio
  • Think about use-cases. How will this be used?
  • Think about faults. What happens when things don't work out as planned?