ROBOTC.net forums
http://www.robotc.net/forums/

Teleop Recorder?
http://www.robotc.net/forums/viewtopic.php?f=52&t=4227
Page 1 of 1

Author:  Thekid986 [ Thu Feb 09, 2012 1:04 pm ]
Post subject:  Teleop Recorder?

Would it be possible to set up a program that works backwards. Like you drive a robot and then it writes what you did in code. Then you could drive the robot and have it do exactly what you want in autonomous. Like you drive forward and a program translates the values returned into code. so you could say drive 10 feet forward and then the code would be generated and if you run that code the robot would do exactly what you drove it to do?
Thekid

Author:  l0jec [ Thu Feb 09, 2012 1:12 pm ]
Post subject:  Re: Teleop Recorder?

My students did this several years ago. As I recall, they captured the state of the joystick at regular intervals and would then replay it so that the code wouldn't know the difference between the joystick values being updated by their replay code vs from the FCS. They used this to quickly record new autonomous routines, but only had variable success at competition.

Author:  magicode [ Thu Feb 09, 2012 2:45 pm ]
Post subject:  Re: Teleop Recorder?

Our team also tried this, but found that it's much more effective to manually program your autonomous.

Author:  MHTS [ Thu Feb 09, 2012 10:11 pm ]
Post subject:  Re: Teleop Recorder?

If you recorded this in the time domain, the playback may not be as accurate as programming autonomous using sensors. Playing back a time domain recording is essentially doing dead reckoning.

Author:  rkrishnan2012 [ Fri Feb 17, 2012 6:33 pm ]
Post subject:  Re: Teleop Recorder?

Hi Guys from Team Unlimited!

We made something that does the same thing (called TriCiA, the Tracking Viscious Panda...don't ask ) :P
It works perfectly because it intelligently knows which commands to include and it will also normalize things like 91 degrees to 90 to make the robot do perfect turns. It can be tweaked to fit your robot better because we have certain servos which may not be of use to you.

Instructions
1)Open RobotC
2)Upload RecordAutonomous.c to robot
3)Run the program
4)Open the "debug stream window" in RobotC
5)Start the joystick window to start driving
6)Open ninjaWolf.exe
7)Copy the text from debug stream and paste it into the window in ninjaWolf
8)Hit "create" and it will make a bunch of functions (based on stuff we already made).
9)Feel free to also use AutonomousFunctions.c to use the functions generated by ninjaWolf.exe
Downloads
http://www.mediafire.com/?73al7igqxjghbwx (RecordAutonomous.c)
http://www.mediafire.com/?8i1fz34fz2uz3k7 (ninjaWolf.exe)
http://www.mediafire.com/?x2x9qe925icd91l (AutonomousFunctions.c)



-Good Luck Teams!

Author:  maths222 [ Tue Feb 21, 2012 5:32 pm ]
Post subject:  Re: Teleop Recorder?

rkrishnan2012-Would you be willing to share the source for ninjaWolf.exe? I would love to be able to modify it for our robot. Thanks for sharing what you have!

Author:  rkrishnan2012 [ Wed Feb 22, 2012 3:06 pm ]
Post subject:  Re: Teleop Recorder?

Sure...

Attachments:
ninjaWolf - WORKING.rar [223.53 KiB]
Downloaded 638 times

Author:  maths222 [ Wed Feb 22, 2012 5:09 pm ]
Post subject:  Re: Teleop Recorder?

THANKS A LOT!!!!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/