2019:Programming: Difference between revisions

From 1511Wookiee
Jump to navigationJump to search
No edit summary
Line 9: Line 9:
**Bring over "editable" methods/code from last year (Josh)   
**Bring over "editable" methods/code from last year (Josh)   
** '''Post list of important feedback to show on dashboard (paper list exists - post on this page) (Kate)'''
** '''Post list of important feedback to show on dashboard (paper list exists - post on this page) (Kate)'''
** Document net tables variable names, types, values, and meanings that robot will send for each of the feedback items (Kate)
** Document net tables variable names, types, values, and meanings that robot will send for each of the feedback items (Kyle)
*Main Robot  
** Implement sending these things (Kyle)
** Add reset & process calls to all subsystems (Josh/Kate)  
*Main Robot (Josh or Kyle)
** Add Disabled method (that works) (Josh/Kate)
** Add reset & process calls to all subsystems  
*Game Pieces  
** Setup Autonomous() to work properly - works like operatorcontrol()?
** Work out how to handle the initial value of cargo/hatch mode. How do we know!?!? (Kyle)
** Add Disabled method (that works)
** Test!
*** Make it debug() all subsystems
*Game Pieces (Kyle)
*Cargo (Kyle)  
*Cargo (Kyle)  
** Test it!!
*Hatch (Kyle)  
*Hatch (Kyle)  
** Test it!
*Electrical (Jeff)
** Hab Cylinder sensors --- if we are using all 6 of these, order more!
*Hab  
*Hab  
**<s>setHabBroken() - explain briefly what this does to operation of other commands</s>
**<s>Solenoid constructor invocations are wrong</s>
**<s>Constructor -- initialization order must match the declaration order</s>
**<s>reset() -- set up as in constructor and stop motor directly</s>
**xxCrossedLevel() -- Check polarities after fixing wiki with electrical
**xxCylindersExtended() and retracted() -- check polarities after electrical fixes IO map
**<s>frontCylindersRetracted() only checks one sensor while others check both?</s>
**<s>Debug for automated is wrong</s>
**<s>Debug for frontCross is wrong</s>
**<s>Debug backRRetract is wrong</s>
**<s>autoLift() -- can this simply set automated = true and resume at the last step it left off on? Simplifies things as your states only change by one set of criteria and in one place</s>
**<s>Steps 3 & 4 look wrong</s>
**<s>if (broken....) in process() needs work -- if auto is getting turned off it should be done when broken is set false, not later</s>
**<s>process() automated steps should move above action processing so that things like turning off drive are done as soon as they are noticed not the next time around</s>
**<s>stopAutoLift should probably set driveDriveBase false?</s>
**<s>So we are driving the back wheels for the "half on" case? THought drive base was doing this?</s>
**<s>When not automated and they do drive() followed by retractBack() or other command, nothing stops the drive</s> 
** Test both auto climb
** Test manual one step at a time climb
** Test manual climb with sensors marked broken
*Elevator (Josh)  
*Elevator (Josh)  
** '''Add way to control pivot to interface'''
** '''Add way to control pivot to interface'''
Line 50: Line 27:
**Document a plan for rio <> Pi communication on this page (net tables variable names, what they do, etc)  
**Document a plan for rio <> Pi communication on this page (net tables variable names, what they do, etc)  
**Place current system on 2018 robot and view stream on driver laptop '''over wifi''' while driving around, verify you get good quality still.
**Place current system on 2018 robot and view stream on driver laptop '''over wifi''' while driving around, verify you get good quality still.
**Finish camera mount(s) (Ethan P is doing this)
** Identify and supply decoder library that can be used to display stream inside 1511 dashboard (Jeff)
** Identify and supply decoder library that can be used to display stream inside 1511 dashboard (Jeff)
* Controls
* Controls
** '''Finish aux controls:'''  
** '''Finish aux controls:'''  
*** Game piece cargo/hab switching
** elevator pivoting
*** Hab buttons & commands
** '''TEST and refine Drive code'''
** Drive code
*** Finish
*** Test!
** Broken switches
** Broken switches
*** Assign on wiki
*** implement in controls





Revision as of 10:46, 6 February 2019

General programming stuff relevant to all subsystems should be documented here.

Outstanding Tasks

Robot Code

Split up by subsystem - responsible veteran student or mentor in (), student(s) doing actual code, if different, in []. These are not in any particular order!

  • Feedback
    • Bring over "editable" methods/code from last year (Josh)
    • Post list of important feedback to show on dashboard (paper list exists - post on this page) (Kate)
    • Document net tables variable names, types, values, and meanings that robot will send for each of the feedback items (Kyle)
    • Implement sending these things (Kyle)
  • Main Robot (Josh or Kyle)
    • Add reset & process calls to all subsystems
    • Setup Autonomous() to work properly - works like operatorcontrol()?
    • Add Disabled method (that works)
      • Make it debug() all subsystems
  • Game Pieces (Kyle)
  • Cargo (Kyle)
  • Hatch (Kyle)
  • Hab
  • Elevator (Josh)
    • Add way to control pivot to interface
    • Implement
  • Vision (Ben M.)
    • Consider net tables variables to start/stop streaming (document them on this page)
    • Document a plan for rio <> Pi communication on this page (net tables variable names, what they do, etc)
    • Place current system on 2018 robot and view stream on driver laptop over wifi while driving around, verify you get good quality still.
    • Identify and supply decoder library that can be used to display stream inside 1511 dashboard (Jeff)
  • Controls
    • Finish aux controls:
    • elevator pivoting
    • TEST and refine Drive code
    • Broken switches
      • Assign on wiki
      • implement in controls


  • Old robot fixing:
    • Rewrite trash bot (2015) from scratch using 2019 libraries and image. DO NOT IMAGE UNTIL YOU HAVE CODE MOSTLY DONE. (Talk to Jeff before starting, low priority)

Scouting App

In no particular order!

  • Jeff
    • Nothing yet!
  • Alex
    • Nothing yet!

Subsystem Assignments

  • Controls: Insert Mentor person and Student persons here!
  • Insert other subsystem TBD: Insert Mentor person and Student persons here!

Feedback

Match time for driver station/raspi: match_time_remaining

Raspberry Pi connection status: pi_connected

vision-distance to image center: distanceCenter //likely to change

Autonomous

Insert auto stuff here!
 

Camera stream

Pi details: 2019:Vision

  • Camera stream via RTP on port 5800
  • Reciever SDP file:
    v=0
    m=video 5800 RTP/AVP 96
    c=in IP4 (Raspberry Pi IP)
    a=rtpmap:96 H264/90000
  • Sender GStreamer pipeline (command line): gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw.framerate=30/1,width=640,height=480 ! omxh264enc ! rtph264pay config-interval=10 pt=96 ! udpsink host=(driver station IP) port=5800 max-bitrate=2700000
  • Reciever GStreamer pipeline (command line): gst-launch-1.0 udpsink port=5800 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96" ! rtpjitterbuffer latency=1 ! rtph264depay ! decodebin ! videoconvert ! autovideosink

 

Programming Archives