Go to Post GP and the Scout Law are high ideals that only the best will achieve and live everyday. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2009, 08:52
superspork22 superspork22 is offline
Registered User
FRC #2845 (O-Botics)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Osseo Senior High
Posts: 6
superspork22 is an unknown quantity at this point
Servos in C

Hello everyone.

Our team made the decision to try and use regular C with the wrapper libraries that WPI provides since it's what our small programming team is more familiar with. I was trying to get the servos working yesterday and found that there is no CreateServo function defined in CServo.h. Do servos only fully work in C++ or am I missing something?
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2009, 17:20
Hunter1100 Hunter1100 is offline
Registered User
FRC #1100
 
Join Date: Jan 2009
Location: Northborough, MA
Posts: 4
Hunter1100 is an unknown quantity at this point
Re: Servos in C

Just had a quick look at the C wrappers and none of the motor controllers have a 'create' function. At a quick glance I am unsure if you need to do anything other than start setting servo values using the various Set function, though I noticed the CPWM wrapper has an allocate function - though I think WPILib might do that for you.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2009, 21:42
superspork22 superspork22 is offline
Registered User
FRC #2845 (O-Botics)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Osseo Senior High
Posts: 6
superspork22 is an unknown quantity at this point
Re: Servos in C

I've found basically the same thing after doing some more testing and messing around with this stuff. I haven't completely gotten servos to work yet, but I have gotten other things to work while using just a set function to do things. I'll be experimenting a little more and see what I can find out.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Servos? PrincessJae Motors 15 26-01-2008 01:33
servos Thadanator Motors 13 04-05-2005 16:57
servos savage Technical Discussion 5 09-04-2005 20:52
servos AlphaOmega870 General Forum 1 21-01-2004 17:37
Servos... Katie Reynolds Motors 8 14-01-2002 08:08


All times are GMT -5. The time now is 03:01.

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