Go to Post Arefin Will You go to the prom with me :D ? i Have a dress picked out and everything :) - Tytus Gerrish [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2010, 12:02
nabioullinr nabioullinr is offline
Registered User
FRC #1073
 
Join Date: Jan 2010
Location: Hollis, NH
Posts: 17
nabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura about
Cannot Assign Gyro to Second Analog Sidecar

When I try constructing a gyro with Gyro(2, 1), corresponding to analog port 1 of analog sidecar 2, I receive runtime kernel exceptions stating that the gyro must be connected to port 1. However, I tried constructing an AnalogChannel(2, 1), and it worked, returning the raw voltage. Next, I tried constructing a Gyro with an AnalogChannel, and now I receive a different exception (An address parameter to a method is NULL in GetAccumulatorOutput()). Do I need to construct/initialize the second analog sidecar? (The first one is in slot 1 and apparently does not have to be constructed, since all of the above worked with it).

Any ideas? Thanks in advance.
  #2   Spotlight this post!  
Unread 31-01-2010, 12:54
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Cannot Assign Gyro to Second Analog Sidecar

You should not need to open the analog breakout board. There is no way to open it, as far as I know..

Why are you using the gyro on slot 2 instead of slot 1? Did you run out of analog channels for gyros on slot 1? If so, that could be your problem. I think you can only have 2 gyros/accelerometers integrated by the FPGA at one time, although I might be wrong and it might be 2 per slot. After that, you have to integrate it in software.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 31-01-2010, 13:25
nabioullinr nabioullinr is offline
Registered User
FRC #1073
 
Join Date: Jan 2010
Location: Hollis, NH
Posts: 17
nabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura aboutnabioullinr has a spectacular aura about
Re: Cannot Assign Gyro to Second Analog Sidecar

No, I already have a working gyro (connected to slot1 port1); I need to connect another one (slot2 port1).
  #4   Spotlight this post!  
Unread 31-01-2010, 14:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Cannot Assign Gyro to Second Analog Sidecar

The gyro requires an accumulator in addition to the normal analog "stuff" in the FPGA. There are two accumulators implemented in the FPGA, on Slot 1, inputs 1 and 2. If you want to use two gyros with the WPILIB gyro code, that's where you have to use them.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Victor=Fail on second digital sidecar Robostang 548 NI LabVIEW 0 14-02-2009 18:33
Converting to an accumulator channel on the analog sidecar Phoenix Spud Electrical 0 18-01-2009 16:43
Using gyro.c with other analog sensors no go Astronouth7303 Programming 17 03-01-2006 21:04
Need help with Gyro = Analog Devices ADXRS150EB Jack Jones Technical Discussion 9 18-07-2005 07:00
Using gyro with other analog sensors...again demerski Programming 0 19-02-2005 08:23


All times are GMT -5. The time now is 01:54.

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