Go to Post After all, life is what you do outside of FIRST. No wonder it's so short. - Vashts6583 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-03-2016, 08:19
acastagna acastagna is offline
Registered User
FRC #1493
 
Join Date: Jan 2012
Location: Albany High School
Posts: 34
acastagna is an unknown quantity at this point
Play-Record Macro

We are trying to implement the play-record macro described by teams 4009 and 2220 for our autonomous (thank you!) - see
http://www.chiefdelphi.com/forums/sh...ht=play+record

We have it programmed in Java using iterative robot, and it is mostly working except for two issues. When we shoot the ball, we send a shooter.set(1) command to the shooter motor, and then have a 1.5 second delay to wait for the shooter wheel to get up to speed. When we record this, the macro stops recording during the delay, and on playback the shooter wheels get a shooter.set(0) command immediately after getting the shooter.set(1). The shooter wheels are also used as a ball intake without a delay and that function works fine on playback.

The other issue is one that others have reported - accuracy isn't perfect with respect to the path driven. If we record driving in a loop and then play back from the original starting point the robot's final position is off by a few inches or more, and orientation also off.

I'm thinking of having the recording and playback modes run in a separate thread, that way it would keep recording during the delay and we can also increase the read frequency (and hopefully increase accuracy) which right now I believe is limited to by delay between driver station and robot. Has anyone tried this before? Any thoughts?
 


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 09:37.

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