Go to Post It's more of a "gracious professionalism" thing. - Matt Leese [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 21-06-2016, 20:13
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 415
jman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant futurejman4747 has a brilliant future
Autonomous drive scripting

I built some VIs to record inputs going to motor controllers to an array then write that array to a TDMS file. Then I read the file, index the array, and write the elements to the motor controller. I'm wondering if there are ways to ensure the robot drives as close a path as possible to the on the driver recorded. I already added a function to smooth out the joystick inputs and the "voltage corrected tank drive" algorithm from the team 358 LV document. I'm wondering if there are any other ways to help make sure the path is consistent. I also want to know if the TDMS functions are being used correctly and if I can do anything to optimize it.

All relevant VIs/sub VIs are uploaded as snippets.
Attached Thumbnails
Click image for larger version

Name:	Get_joy-Write_to_file_&_motor.png
Views:	56
Size:	140.0 KB
ID:	20859  Click image for larger version

Name:	Read_file-Write_to_motor.png
Views:	38
Size:	145.0 KB
ID:	20860  Click image for larger version

Name:	single_write_array_to_TDMS.png
Views:	36
Size:	27.1 KB
ID:	20861  Click image for larger version

Name:	float-smoother.png
Views:	32
Size:	25.3 KB
ID:	20862  Click image for larger version

Name:	V-corrected_drive.png
Views:	31
Size:	19.2 KB
ID:	20863  

__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
Reply With Quote
  #2   Spotlight this post!  
Unread 22-06-2016, 04:18
ranlevinstein's Avatar
ranlevinstein ranlevinstein is offline
Registered User
FRC #2230 (General Angels)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Israel
Posts: 9
ranlevinstein will become famous soon enough
Re: Autonomous drive scripting

If you want the robot to consistently drive the same path (or in this case a trajectory because it's time indexed) you need to use some sensors.
I really recommend to view this thread:
https://www.chiefdelphi.com/forums/s....php?p=1474091
In your case you already have a trajectory so you don't need to generate it, and you can use sensors to follow it.
This year my team created our autonomous by recording what the drivers did and some sensors. We used for each of our arms feedforward + PID and for the drivetrain we recorded its position and angle and use non linear control to follow the trajectory. We also constrained the jerk, acceleration, and velocity while recording so it will be motion profiled.
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 02:32.

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