View unanswered posts | View active topics It is currently Thu Oct 30, 2014 7:50 pm






Reply to topic  [ 3 posts ] 
battery expander 
Author Message
Rookie

Joined: Sat Oct 17, 2009 9:49 pm
Posts: 5
Post battery expander
does anybody know how you program the motors you plug in the battery expander?


Thu Nov 12, 2009 7:25 pm
Profile
Rookie

Joined: Sat Oct 17, 2009 9:49 pm
Posts: 5
Post Re: battery expander
i have to program my drive system to one joystick, the drive system has 4 motors, this is what i have

task main()
{
bMotorReflected[port1]=1;
bMotorReflected[port3]=1;
bVexAutonomousMode=false;

while(1==1)
{
motor[port1]= vexRT(Ch2)-(Ch1);
motor[port2]= vexRT(Ch2)-(Ch1);
motor[port3]= vexRT(Ch2)+(Ch1);
motor[port4]= vexRT(Ch2)+(Ch1);
}
}
Is there any way in which when we turn our robot, motor ports 1 and 2 can move in reverse instead of not moving at all, so it can turn faster?


Thu Nov 12, 2009 7:37 pm
Profile
Rookie

Joined: Fri Oct 09, 2009 9:21 am
Posts: 28
Post Re: battery expander
pinkpanther01 wrote:
does anybody know how you program the motors you plug in the battery expander?


The battery expander doesn't effect the programming at all.
For instance if you wire from motor port 1 to input A on the expander and then output A on the expander to a motor, the motor will be controlled by programing motor[port1]. Note that on the expander all the white wires are toward the center.

_________________
Jon Thompson
Coach - Twisted Bots
VRC 177


Thu Nov 12, 2009 9:43 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.