Go to Post Imagine the pressure on Dave Lavery - every time he sneezes someone assumes it's a game hint. - Gary Dillard [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
  #19   Spotlight this post!  
Unread 03-29-2016, 10:58 PM
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Pathfinder - Fast Motion Profiling for Java and C++, Tank and Swerve Drive

I just saw your post, and I am probably running into the same problem. I'm a little confused as to how the coordinate system for Pathfinder works.

This is how I assumed it works, but I am probably misunderstanding it:
If the robot starts facing towards the direction I define as forward (ie. towards the opponent's castle):
Its initial heading is pi/2
A waypoint with x = 0, y > 0 and heading = pi/2 will cause the robot to drive straight forward.
A waypoint with x < 0, y = 0 and heading = pi will cause the robot to turn to the left and drive to the left, ending up facing left.
A waypoint with x < 0, y = 0 and heading = 0 will cause the generator to crash.
A waypoint with x = 0, y > 0 and heading = pi/4 will cause the robot to end in a position directly in front of where it started, but pointing to the right.

EDIT: I reread your post, and updated my examples.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists

Last edited by Ben Wolsieffer : 03-29-2016 at 11:06 PM. Reason: I reread your post
Reply With Quote
 


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 04:43 AM.

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