View unanswered posts | View active topics It is currently Fri Jul 25, 2014 5:29 am






Reply to topic  [ 4 posts ] 
help with dc motor controller 
Author Message
Rookie

Joined: Tue Jan 13, 2009 12:24 pm
Posts: 10
Post help with dc motor controller
i have robotc version 1.40
i have 2 drive motors connected to the dc motor controller and i have the dmc teathered to the nxt microcontroller port b
heres my code

#include "JoystickDriver.c"

task main()
{
int var1;

while (true)
{
getJoystickSettings(joystick);
motor[motorB] = joystick.joy1_y1;
motor[motorB] = joystick.joy1_x1;
motor[motorA] = joystick.joy1_x1;
}
}


ignor my motor a thats for the server i use to turn the robot but at the moment when i power robot i get nothing its like dead on the water
anyone got the same problem or a solution im stuck


Tue Jan 13, 2009 12:32 pm
Profile
Rookie

Joined: Tue Jan 13, 2009 12:24 pm
Posts: 10
Post Re: help with dc motor controller
i have loaded the single joystick drive sample and tried to run that and none of the motors still work

i have the dc motor controller connected to S1 and it isnt working anyone have any ideas please im really stuck


Tue Jan 13, 2009 1:24 pm
Profile
Rookie

Joined: Thu Jan 08, 2009 7:51 pm
Posts: 25
Post Re: help with dc motor controller
Update to the latest version of version of RobotC (1.46) which you can find here:
http://www.robotc.net/content/lego_down/downloads/ROBOTCforMindstorms_146-365.exe

Hope this helps.

_________________
It must be user error.


Tue Jan 13, 2009 1:35 pm
Profile WWW
Rookie

Joined: Thu Feb 12, 2009 1:10 pm
Posts: 1
Post Re: help with dc motor controller
if you are using the FTC motors then you have to name the motors "motorD" and "motorE", motor A and B are if you are using the NXT motors connected directly to the Brick


Thu Feb 12, 2009 1:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.