FIRST Forums  

Go Back   FIRST Forums > General Discussions > FIRST Programs > FIRST Robotics Competition > Competition Discussion > Programming > Java

Reply
 
Thread Tools
  #1  
Old 02-15-2010, 06:11 PM
cburger cburger is offline
Junior Member
 
Join Date: Oct 2008
Posts: 4
Default Java Servo "get" methods

We've tried servo.get(), servo.getAngle, servo.getRaw(), but these methods always return 0. We can control the servo using servo.set but the servo doesn't report its position after moving. Has anyone successfully read a servo's position using Java? We're using the HiTechnic HS-322HD servo. Any suggestions are appreciated. Thanks.
Reply With Quote
  #2  
Old 02-16-2010, 01:19 AM
RoboFan1 RoboFan1 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 3
Default Re: Java Servo "get" methods

We ran into the same problem too. Even after using a set, it would still return 0.

Our team deicded to improvise by always starting from the "0" position and then increment our own int angle so as to reflect what we should get from the getAngle() method.
Reply With Quote
  #3  
Old 02-17-2010, 11:44 PM
cburger cburger is offline
Junior Member
 
Join Date: Oct 2008
Posts: 4
Default Re: Java Servo "get" methods

Thanks for the response. Glad to hear we weren't overlooking anything.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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
Problems with running Java bench test matsuo Java 1 01-29-2010 09:55 AM
Java: Vision Libraries Delian Vision 1 01-12-2010 06:42 AM


All times are GMT -4. The time now is 09:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.