Log in

View Full Version : build new programming (st.louis regional)


nick_champ_2
22-02-2004, 16:11
:yikes: :confused: could someone who knows how to program the bot (that is comming to the ST. LOUIS regional) please program our robot. :yikes: we are using the default code and we have some additional things that need to be worked into the program but none of our team members know the language. :confused: anyone else that wants to help my e-mail is nickmesa2005@yahoo.com
we need programming for 1 joy stick to go forward, back, and turn with two different pmw ports (drill motors)
two different buttons to reel in cable for different things (2 seat motors)
one button to turn van door motor.
at a total we have 5 motors and need three different buttons with the
x and y axis working correctly. thanks
PLEASE

Kevin Karan
22-02-2004, 16:52
Im sure someone will, but id recomend you check out FIRSTs C programming tutorial so you arnt stuck next year.
http://www.usfirst.org/robotics/C_help.htm
It helps some if you have someone that did pbasic (assuming your not a rookie team :D) because its not all that diffrent, its just daunting at first but youl get the hang of it.

nick_champ_2
22-02-2004, 17:29
we have a teacher that will try to help but he is taking his time with it and we need it like NOW :(

Andrew
22-02-2004, 18:46
Could you post what signals are connected where?

Ie. joystick 1 y is the right drive command
pwm1 is connected to the right drive motor (0 = full forward, 255 = full reverse)

or something?


Based on your second statement, I am assuming that you want code now, not when you get to St. Louis.

Kevin Karan
22-02-2004, 19:59
EDIT: I sent you an email and a PM

Astronouth7303
22-02-2004, 20:46
You have a month to program after you ship the bot. :)

Kevin Karan
22-02-2004, 20:47
they may want to do some driver practice.

Astronouth7303
22-02-2004, 21:06
That is the problem. But ship is on thursday. Show up early.

deltacoder1020
22-02-2004, 21:33
:yikes: :confused: could someone who knows how to program the bot (that is comming to the ST. LOUIS regional) please program our robot. :yikes: we are using the default code and we have some additional things that need to be worked into the program but none of our team members know the language. :confused: anyone else that wants to help my e-mail is nickmesa2005@yahoo.com
we need programming for 1 joy stick to go forward, back, and turn with two different pmw ports (drill motors)
two different buttons to reel in cable for different things (2 seat motors)
one button to turn van door motor.
at a total we have 5 motors and need three different buttons with the
x and y axis working correctly. thanks
PLEASE

nick, are the seat motors and the van motor on victors or relays?

Astronouth7303
22-02-2004, 21:37
:blink: :blink: victors, but thats another forum.

We use relays for solenoids.

Kevin Karan
22-02-2004, 21:40
I think he was asking nick_champ_2...

deltacoder1020
22-02-2004, 21:41
:blink: :blink: victors, but thats another forum.

We use relays for solenoids.

never hurts to double-check. would you dive headfirst into a programming project without knowing exactly and for sure what you're programming for?

deltacoder1020
22-02-2004, 21:41
I think he was asking nick_champ_2...

that i was.

Astronouth7303
22-02-2004, 21:42
Yes. Use aliases.

Kevin Karan
22-02-2004, 21:43
er... are you ok?

deltacoder1020
22-02-2004, 21:44
Yes. Use aliases.

remember, this is a team that doesn't really know the language - i'd like to give them as simple a time as possible, so if i can ask a question and get a simple answer, and in doing that save both them and myself coding, why shouldn't I?

Kevin Karan
22-02-2004, 21:46
I dont think hes around, I emailed him over an hour ago and my PM is still unread...

deltacoder1020
22-02-2004, 21:47
I dont think hes around, I emailed him over an hour ago and my PM is still unread...

not everyone checks the forums every hour, as much as it might seem like it to you or me ;)

Astronouth7303
22-02-2004, 21:48
I said that was me. Besides, getting aliases down would really help in the future.

I case your wondering, An alias is what we call a name we give to something, as shown here:

#define LeftMotor pwm01


That way, you can use LeftMotor in your code instead of pwm01. It makes your code more readable and reduces headache if you change the motor to pwm07.

Kevin Karan
22-02-2004, 21:50
I said that was me. Besides, getting aliases down would really help in the future.

I case your wondering, An alias is what we call a name we give to something, as shown here:

#define LeftMotor pwm01


That way, you can use LeftMotor in your code instead of pwm01. It makes your code more readable and reduces headache if you change the motor to pwm07.
I find the headache comes from remembering what the aliases are named... I guess im still in a pbasic mindset when it comes to saving overhead space, eh :D

nick_champ_2
23-02-2004, 20:52
nick, are the seat motors and the van motor on victors or relays?

we might put them on victors if we can get them running
right now they are ready to go but we cant figure the program out.

nick_champ_2
23-02-2004, 20:55
the controller in port 1 right now controls the robot (forward back left and right) with the axis. we want to use the buttons to activate the motors and probably go on to using a second controller. the drill motors for our drive train are on pwm 13 and 15. i read in the program that it will let them go in forward and reverse thats why we are on those pwm's.