View Single Post
  #6   Spotlight this post!  
Unread 18-02-2010, 08:58
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: ? programming servos

to declare one is fairly easy,
try:
AnalogChannel *pot;
pot=new AnalogChannel(<channel>);

then to get the voltage from it:
pot->GetVoltage();

check out the c++ help files, they explain a fair amount, not always in the best of detail but usually enough to use things
Reply With Quote