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

I need help with coding my EV3! (ANYONE)
http://robotc.net/forums/viewtopic.php?f=1&t=13233
Page 1 of 1

Author:  Musaraki [ Sun Jan 24, 2016 4:32 pm ]
Post subject:  I need help with coding my EV3! (ANYONE)

I've have to navigate through this board using my ev3. I have attached the file of the picture. The white block is my ev3 robot. I need to turn and scoop up the gold ball which is located in the slot beside the robot on the right. Then I have to follow path A and drop the ball in the box over the ramp. After that the robot has to come back down the ramp and finish at the finish line for A/C.

What I need to use is the touch sensor and gyro sensor and I haven't been taught anything and was told to figure everything out on my own :(

For a skilled programmer, he can do this in a few minutes I believe. If possible can anyone be willing to do the code for me? If not then I have started to program but what happens is I want the robot to go backward after it touches the wall. But it wont go backward:

#pragma config(StandardModel, "EV3_REMBOT")
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//

task main()
{

{
motor[motorA] = 100;
wait1Msec(100);
}
if(SensorValue(touchSensor)== 1)
{
motor[motorC] = -50;
motor[motorB] = -50;
wait1Msec(1000);
}
else
{
motor[motorC] = 100;
motor[motorB] = 100;
wait1Msec(5000);
}

Attachments:
LegoEV3 Board.png
LegoEV3 Board.png [ 767.4 KiB | Viewed 4452 times ]

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