View Single Post
  #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: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
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