ok here is my question if pseudo-code
code:
Quote:
#define pwm1 = Rmotor1
#define pwm2 = Rmotor2
#define pwm3 = Lmotor3
#define pwm4 = Lmotor4
#define digital_input_1 = func1
#define digital_input_2 = func2
#define digital_input_3 = func3
#define digital_input_4 = func4
switch (timer <=1)
.Case0:
..If (Rgear = 0
.......Lgear = 0)
.Case1:
..If (Rgear =
......Lgear = ) /* gear count unknown at this time */
.Case2:
..If (Rgear =
.......Lgear = )
.....Switch (Func2 = 0
.................Func3 = 0)
.......Case0:
.......Case1:
.......Case2:
.Case3:
......Switch (Func2 = 1
.................Func3 = 0)
|
ok the periods r there to save indetions because idk how to anyother way, the periods have no point in code