Go to Post Happy 6 days till FIRSTmas! (and Happy New Year, but that pales in comparison =D) - VKP [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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
  #5   Spotlight this post!  
Unread 11-04-2006, 07:08
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Programming: MotorRcControl() vs GetRxInput()/SetServo()

Quote:
Originally Posted by GlennGraham
Ok, I've been beating my head against this for a couple of days and haven't solved the problem. If I do the following, things work fine:

while(1) {
// control motor connected to #8 with channel #3
MotorRcControl(1, 3, 8, 0);
}

...but the following makes the servos connected to the uController go nuts:

int armASpeed = 0;
while(1) {
// control motor connected to #8 with channel #3
armASpeed = GetRxInput(1, 3);
PrintToScreen("armASpeed: %d", armASpeed);
SetMotor(8, armASpeed);
}
-Glenn
There are some quirks with the way EasyC V1 worked with motor and receiver commands. You could only use the PWM commands in some cases and only use the SetMotor in others and using the wrong ones would cause problems. It's all been cleaned up in EasyC V2 and they are interchangeable.

Are you using V1? If so, look at the help because I think the correct use is described there. But if you are, I'd suggest tryng to upgrade to V2 since it has some nice extra features (like user functions) and all that stuff is cleaned up.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
VEX programming Gene F Programming 14 08-08-2006 22:21
Programming Forum Warning Brandon Martus Announcements 10 29-12-2005 13:32
Robot Programming Education phrontist Programming 11 03-05-2004 07:32


All times are GMT -5. The time now is 12:17.

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