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