BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:39 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Using servo command
PostPosted: Mon May 26, 2003 10:00 am 
The servo command takes a value from -2400 to 2400 with 0 being centered, but all the variable types are positive only.

byte 0 - 255
word 0 - 65535
long 0 - 4,294,967,295

So how does one get the servo to move to the left of center?



Top
  
 
 Post subject: Re: Using servo command
PostPosted: Mon May 26, 2003 10:00 am 
OK, figured it out. Instead of saving the exact servo position in a variable, it is a range from 0 - 4800 and the command becomes

servo rpin, position - 2400

seems kind of wasteful to force extra math on the servo command however.



Top
  
 
 Post subject: Re: Using servo command
PostPosted: Tue May 27, 2003 10:00 am 
What About Sword? Signed Word Type.

Eric



Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO