ROBOTC.net forums
http://robotc.net/forums/

I NEED A BIG HELP PLEASE!!
http://robotc.net/forums/viewtopic.php?f=52&t=3317
Page 1 of 1

Author:  ebille69 [ Tue Jun 14, 2011 5:23 am ]
Post subject:  I NEED A BIG HELP PLEASE!!

im going to a competition next week, and i need to know how i can make the robot accelerat without any sensors. My problem is that the robot begins to a high power, and When it starts to run, he leans back. I need any type of acceleration i mean i need the robot to move first at 20 power, after 40 after 50.
sorry for my bad english

Author:  magicode [ Tue Jun 14, 2011 8:27 am ]
Post subject:  Re: I NEED A BIG HELP PLEASE!!

You can use a for loop.
Code:
for(int i = 20; i < 100; i++){
  motor[wheel] = i;
  wait1MSec(50);
}


you can change the wait timing to make it accelerate faster or slower.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/