Go to Post I also hate it when I keep seeing this message: "You must spread some Reputation around before giving it to Andy Baker again." - dlavery [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 06-02-2015, 10:05
JackVaughn23 JackVaughn23 is offline
Registered User
FRC #5727
 
Join Date: Feb 2015
Location: North Carolina
Posts: 3
JackVaughn23 is an unknown quantity at this point
CanTalonSRX Encoder Readings

Good morning, this is my first post to this forum so please bear with me. We are using a motor with an encoder on it connected to a CanTalonSRX. I am able to set values for the motor, but I am not able to get any values from the encoder. When I read the manual (CrossTheRoads) for the CanTalonSRX all of the methods that are using in the examples are for a CanTalon and not the CanTalonSRX. I can use the CanTalon methods to "set" items but anything I try to "get" it always returns a value of 0. When I look at the WPILib documentation for Java for CanTalonSRX all of the methods require arguments to be passed to the function that I have no clue what they are. For example,

GetCurrent(SWIGTYPE_p_double param)

I'm not sure what argument the method is wanting.

But on the other hand, the methods for a CANTalon are incredibly simple and most require no arguments and I would really love to use those methods if they would work with the SRX (the CrossTheRoad manual only examples CANTalon methods for use with the SRX).

Any help would be greatly appreciated, I apologize in advance if I left out any details needed.
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 22:30.

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