DEWBOT VI Programming

From DEW Robotics
Revision as of 03:56, 14 February 2010 by Nvoidknight (talk | contribs) (January 31, 2010)

Jump to: navigation, search

FRC Team 1640 Programming Team

Journal for the Programming Team
Build Season 2010 "Breakaway" If you are a programmer, please add/edit. Repeat above, I mean it. If you are a programmer, please, please add more. I'm sure programmers did stuff week of 1/18-1/22!

2010 DEWBOT VI Game Code

Link to 2010 DEWBOT VI Game Code Page: 2010 DEWBOT VI Game Code

Programming Ideas/Goals

  • Pivot Drive
    • Port to magnetic encoders
    • Recalculate math for all drives
    • Develop multi front chassis algorithm
    • Talk about innovative pivot drive usage
  • Vision
    • Develop target tracking using camera (needs to work with something else other than arcade drive)
    • Develop line tracking (done)
    • Develop ball tracking (Need to know the sensor)
  • Robot Safety
    • Develop anti flipping system
  • Robot Itself and Kicker
    • Autonomous system with customization (part way done, need to know ball traking sensor)
    • Program kicker
    • Final tower climbing system
    • LED for signaling
    • Develop camera to kicker relationship
  • Driver Station
    • Update Classmate PC
    • Design friendly control system with LEDs and toggle switches
  • Lessons/Etc.
    • Pivot Drive
    • LabVIEW
    • Algorithm development
    • Programming management
    • Camera System
  • Conclusive Paperwork
    • Detailed Documentation of Process and Code
    • Easy Driver's Manual
    • Nice demonstration PowerPoint

Ideas Discussed

Vision System

January 17, 2010

  • Caged Camera for safety and protection
  • Spring system that just knocks back or foward
    • Material and shape TBA
  • Located in middle of robot
  • Rotation and Altitude control
  • Recalibratible camera
  • Reuse of camera code instead of making more
  • 3 Goals:
    • Target Tracking
    • Driver's Aid
    • Field Watcher

Tasks In Progress

January 17, 2010

  • Vision system programming
  • Pivot Drive math recalculations
  • Remind Paul/Ken to update Classmate

January 29, 2010

Goals for January 30, 2010

  • Have all drive modes ported over to game code (Kenneth)
  • Work on XBOX Controller (Paul)
  • Use recalculated math from Clem in code
  • Develop theoretical algorithms for [Least Limit Movement Algorithm 2.0]
  • Develop theoretical algorithms for "Crab with a Twist of Snake" "Crab with a Twist of UFO"
  • Despite our mentors recommendation that we don't program the same code, we will be programming the same theoretical code. With that we will see which works best (survival of fittest) and compromise (natural selection)
  • Have a working drive code by night of January 30, 2010. We've moved deadline from January 31, 2010.
  • We need a twist control.

Tasks Accomplished

January 17, 2010

  • Assembled successful Control System
  • Tested out Control System
  • Tested out Cherry Magnetic encoders and various light sensors
  • Created power plug for camera
  • Worked out some math for pivot drive
  • Port most drive modes to 2010DEWBOTVI Code

Programmer's Journal

January 16, 2010

9pm-12am

  • Set up control system
  • Tore apart Pivot Bot Prototype
  • Reimaged cRIO
  • Installed drivers for Classmate
  • Checked out Cypress First touch
  • Talked about camera system (look above)
  • Broke into vision and pivot crew
  • Talked about drive math
  • Tested out Cherry sensors
  • LUNCH

1pm-5pm

  • Tested out more of cherry sensor
  • Tested out light sensors
  • Worked on camera
  • Went to RadioShack to buy H head for camera
  • Solder plug and plugged in into power distrabution
  • Realize need to update classmate

January 29, 2010

6:00 BPC (Before Paul Came)

  • Kenneth and DJ arrives.
  • Looked for power strips with Cole. There are none...
  • Tried to get LabVIEW on DJ's Mac. No success.
  • Started programming drive system.
  • Programmer's cookie break
  • Tried to get Max to come.
  • Asked Clem about math for pivot drive. Success.
  • Installed Cypress CD.

6:00 APC (After Paul Came)

  • Paul arrived
  • Discussed about status quo of code.
  • Compromised code (survival of the fittest)
  • Worked on XBOX Controller input .vi (Paul) Success
  • Port pivot drive system over to 2010 DEWBOTVI Code
  • Crab and Snake done. All other modes to be done (Kenneth) Success
  • Paul and Kenneth decided on angle degree as base unit for crab.
  • Discussed the [Least Limit Movement Algorithm] and seeing how to implement it
  • Proposed new additional "limit" to [Least Limit Movement Algorithm], therefore upgrading it to [Least Limit Movement Algorithm 2.0beta]
  • DJ still trying to install LabVIEW on Mac. Doesn't work.
  • Paul and Kenneth worked on "Crab with a Twist"
  • Departed ways

After Robotics

  • 12:15 AM - Paul completes theoretical test of Least movement algorithm ;) Success

January 30, 2010

Pre Arrival

  • Paul worked on update Least Movement Algorithm
  • Kenneth worked on finalization porting and redoing math.

Arrival to Lunch

  • ???


Lunch to Snack Break

  • Traded code, compromised
  • Talked about drive motors and rota motors
  • Have working code

Snack Break to Dinner

  • Talked about autonomous
  • Drafted some autonomous


Dinner to Departing

  • Worked on Math - Ben, Ken, Foster
  • Math is complete and fixed
  • Learned arrays to use for code

January 31, 2010

12 PM

  • Paul finished Shortest Angle Algorithm

3 PM

  • Kenneth and Ben finalized Snake and Auto array
  • Paul fixes SAM.vi

7 PM

  • Ben taught DJ LabVIEW
  • Zain worked on his first code
  • Paul finalizes Drive Motor.vi, Turn Target.vi, Crab Mode 3.vi, ShortestAngleMovement.vi
  • Kenneth compromises all code together
  • Waiting for the robot...

February 12, 2010

  • Crab mode works!
  • Ken is planning a snake mode.
  • Tested Autonomous for Teleop, couldn't get past acquiring target.
  • Regular Autonomous has yet to be tested (It is much different code than Autonomous for Teleop.)

Labview links

FIRST Robotics Software 2010 - Windows - LabVIEW & NI Utilities - this is the initial release, Do not use the serial number that comes in the software kit for activation. You MUST use the following Serial Number to activate LabVIEW: L13R00000

Link to the FIRST FRC Software Page that has all the programming information on the 2010 software packages.

LabVIEW Tutorials to learn some LabVIEW

FRC 2010 Training Tutorials to learn the 2010 LabVIEW

FRC 2010 Driver Station to learn the 2010 Driver Station

FIRST Community National Instrument's FIRST Community

Programming Forum from Chief Delphi - Chief Delphi Programming