View Single Post
  #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