View unanswered posts | View active topics It is currently Fri May 25, 2018 7:12 am






Reply to topic  [ 1 post ] 
I need help with coding my EV3! (ANYONE) 
Author Message
Rookie

Joined: Sun Jan 24, 2016 4:16 pm
Posts: 1
Post 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 2294 times ]
Sun Jan 24, 2016 4:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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.