/roboti/istrobot/camerus/SW/876/camerus.c |
---|
33,7 → 33,7 |
#define CASMAX 192 |
#define CASAVR ((CASMAX+CASMIN) / 2) |
#define OFFSETO 0x9F //0x9F // Vystredeni serva pro objeti prekazky |
#define OFFSETO 0x9A //0x9F // Vystredeni serva pro objeti prekazky |
#byte INTCON = 0x0B // Interrupt configuration register |
#bit GIE = INTCON.7 |
/roboti/istrobot/camerus/SW/876/objizdka_R.c |
---|
47,7 → 47,7 |
disp(3); |
odocounter=get_timer1(); |
for(n=1;n<=10;n++) |
for(n=1;n<=6;n++) |
{ |
while(get_timer1()<(odocounter+n)); |
SetServoQ((CASAVR-CASMIN)-i); |
57,7 → 57,7 |
disp(4); |
odocounter=get_timer1(); |
for(n=1;n<=10;n++) |
for(n=1;n<=6;n++) |
{ |
while(get_timer1()<(odocounter+n)); |
SetServoQ((CASAVR-CASMIN)-i); |