Help me in some Problem ??

Hello …

I have Problem in ( autonomies code ) , ( sheftEncoder for 4 motores ) , and ( double hydraulic )

Q1) How can I make code for Double Hydraulic ?
Q2) How can I Make cdoe Autonomies for 15 Sec ?
Q3) How can I make code SheftEncoder for 4 motores ?

Please Help !!!

My travel to Los Angles Next Week !

I want to finish from the software This is Day !

First, what programming software are you using? easy c or robot c?
Second, how far have you gotten? Do you have standard driver control code or a few autonomous routes written, and struggling to deal with a competition template? Or have you just started programming?
The Pneumatics part, there are a few wonderful programming tutorials on youtube. They are not hard to find and you may take a look.
The motor encoder part, what are they used for? Can you describe a little more?


Q1) How can I make code for Double Hydraulic ?

I tend to like 1’s and 0’s, sometimes I mix them together like so “10110010”


Q2) How can I Make cdoe Autonomies for 15 Sec ?

Easy,


while(wait1Msec(15000)) { }


Q3) How can I make code SheftEncoder for 4 motores ? 

First we need some of these “SheftEncoders,” structs can do that…

typedef int Motores;

struct SheftEncoder {
	Motores motores[4];
}

void sheft(SheftEncoder enocde) {
	sheft(SheftEncoder enocde);	// Absolutely won't cause a stack overflow
}

Sheft encode;

encode->motores[0] = 1;
encode->motores[1] = 2;
encode->motores[2] = 3;
encode->motores[3] = 4;

sheft(encode);

A terribly formatted and unrealistic question deserves a terribly formatted and unrealistic answer.

No I cannot teach you how to program, let alone program a robot from scratch “This is Day !”, sorry.

Cody is right. You cannot throw a question on the forum and expect others to teach you. Others can help but not teach you from nothing. There are a few of great videos online about easy c and robot c that can get you started. And I believe this is the way we have all been through, struggling for hours to learn a thing in program and there is hardly a shortcut.