Go to Post FIRST MANTRA: When Lawyer-ism fails, Gracious Professionalism Prevails! - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-01-2014, 23:39
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
2013 CORE Robot Utilities

Presenting the CORE 2062 robot utilities from 2013.
https://github.com/core2062/CORERobot

Our robot is coded with a subsystem framework that is lighter-weight then the command based framework. Each subsystem gets the teleop() function called once per frame, and input is handled in a joystick cache that prevents input lag. Subsystems own their own motors and sensors, and anything else they need.

This code also includes our Autonomous scheduler and some drive utilities.
The Autonomous scheduler is our way of organizing the auto code. Autonomous is divided up into independent “Actions”. Each Action is called once per frame, and returns a value that controls whether it continues or not. An optional feature is for a task to send itself to the “background”. Actions in the background continue to be called, but a new Action takes its place in the “main” spot.

Feedback is always welcome, and we're interested to see what other teams think of this, as it worked really well for us both performance and structure wise in 2013. Documentation is sparse, but I'm always happy to answer any questions.

Our 2013 robot code, where you can see an older version of most of these utilities in use is at https://github.com/core2062/core2013
The main difference is in the Caching joystick, which was just developed this summer. Previously we had three functions in each subsystem, one for each of inputs and outputs and one for logic. All of the input functions would be called for each subsystem, then logic, and such. The problem is that everything would need a class member to hold frame-state between the input and logic and output functions. We developed the caching joystick to help fix that. We were hoping to write a similar OutputQueue, but we ran out of offseason time. Oh well!
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
  #2   Spotlight this post!  
Unread 13-11-2014, 18:42
ivendrakeo ivendrakeo is offline
Registered User
FRC #2062
 
Join Date: Nov 2014
Location: Waukesha
Posts: 4
ivendrakeo is on a distinguished road
Re: 2013 CORE Robot Utilities

Here is the Library we will be using for the 2015 season:
https://github.com/core2062/CORERobot
This includes the same library with several things we added throughout last season. The primary addition is compressor and pneumatic functionality, and a few tweaks to the autonomous sequencer.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-12-2015, 19:33
ivendrakeo ivendrakeo is offline
Registered User
FRC #2062
 
Join Date: Nov 2014
Location: Waukesha
Posts: 4
ivendrakeo is on a distinguished road
Re: 2013 CORE Robot Utilities

Here is the updated 2015 robot code!

https://github.com/core2062/CORE2015.../src/CORERobot

This year we added a better way of examining match data by putting match data onto a file that we can look on after a match. We also experimented heavily with PID and added some functionality in the library to compliment it in the future. Lastly we tried to find a better way to manage the smartdashboard but it is currently incomplete and will most likely be finished in the of season. Other than that there were a few minor tweaks and additions.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-12-2015, 20:25
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: 2013 CORE Robot Utilities

Draven this thread says 2013 you're obviously off topic alol.

also i'm pretty sure you mean 2016 season haha.
__________________
Proud alum of CORE 2062.
www.core2062.com
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi