Go to Post I think the GDC should force us to use steam engines, but the electrically-inclined folks on my team might stop whining if they're given more to work with. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 06-02-2016, 15:21
mathemortician1 mathemortician1 is offline
Registered User
FRC #4738
 
Join Date: Feb 2016
Location: San Diego, CA
Posts: 2
mathemortician1 is an unknown quantity at this point
Gyro .getAngle Axis

what measurement (from which axis) does the .getAngle return? I cannot find it in the documentation...
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2016, 16:29
Dan Waxman Dan Waxman is offline
Registered User
FRC #0263 (Aftershock)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2016
Location: Long Island
Posts: 31
Dan Waxman is an unknown quantity at this point
Re: Gyro .getAngle Axis

From documentation:
Quote:
Return the actual angle in degrees that the robot is currently facing. The angle is based on the current accumulator value corrected by the oversampling rate, the gyro type and the A/D calibration values. The angle is continuous, that is it will continue from 360 to 361 degrees. This allows algorithms that wouldn't want to see a discontinuity in the gyro output as it sweeps past from 360 to 0 on the second time around.
So it gets the angle of the drive base's direction, which I think is z.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2016, 17:10
mathemortician1 mathemortician1 is offline
Registered User
FRC #4738
 
Join Date: Feb 2016
Location: San Diego, CA
Posts: 2
mathemortician1 is an unknown quantity at this point
Re: Gyro .getAngle Axis

Džańka.
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 09:12.

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