/roboti/istrobot/camerus/SW/876/jiny_zapis_do_eeprom/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/jiny_zapis_do_eeprom/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/jiny_zapis_do_eeprom/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/zmensena brzdna draha na 0x15/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/zmensena brzdna draha na 0x15/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/zmensena brzdna draha na 0x15/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/robotchallenge/objizdka_R.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/robotchallenge/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/bak2/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/bak2/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/bak2/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/pred_finale/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/pred_finale/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/pred_finale/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/pred_soutezi_rano/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/pred_soutezi_rano/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/pred_soutezi_rano/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/backup/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/backup/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/backup/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/zatuhle_prevodovky/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/zatuhle_prevodovky/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/zatuhle_prevodovky/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/bak/objizdka_L.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/bak/camerus.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/bak/diag.c |
---|
File deleted |
/roboti/istrobot/camerus/SW/876/camerus.c |
---|
11,9 → 11,9 |
#define RR_PRERUSENI 50 // Rozumna rychlost pro priblizeni se k preruseni |
#define BRZDNA_DRAHA 0x15 // Jak daleko pred problemem se zacne brzdit |
#define TUHOS 100 // Jak dlouho se bude couvat po narazu na naraznik |
#define ODODO_PROBLEM1 0xFFF |
#define ODODO_PROBLEM2 0xFFF |
#define ODODO_PROBLEM3 0xFFF |
#define ODODO_CIHLA 0xD0 |
#define ODODO_TUNEL 0xFFF |
#define ODODO_PRERUSENI 0xFFF//0xB4 |
// Adresy IIC periferii |
#define COMPAS_ADR 0xC0 |
82,7 → 82,6 |
int8 rr; // Promenna na ulozeni Rozumne rychlost |
int8 rrold; |
int16 odo_preruseni, odo_cihla, odo_tunel; // Problemy na trati |
int16 odo_problem1, odo_problem2, odo_problem3; // Problemy na trati |
// Zobrazeni jednoho byte na modulu LEDbar |
inline void disp(int8 x) |
464,11 → 463,11 |
log=0; // Zacatek logu v cerne skrince |
last_log_odo=0; // Posledni zaznam odometrie do logu |
ReadBlackBox(); // Vycteni zaznamu z Black Boxu |
// ReadBlackBox(); // Vycteni zaznamu z Black Boxu |
odo_problem1=ODODO_PROBLEM1-BRZDNA_DRAHA; |
odo_problem2=ODODO_PROBLEM2-BRZDNA_DRAHA; |
odo_problem3=ODODO_PROBLEM3-BRZDNA_DRAHA; |
odo_cihla=ODODO_CIHLA-BRZDNA_DRAHA; |
odo_tunel=ODODO_TUNEL-BRZDNA_DRAHA; |
odo_preruseni=ODODO_PRERUSENI-BRZDNA_DRAHA; |
// ........................... Hlavni smycka ................................ |
while(true) |
574,9 → 573,6 |
if((ododo>odo_preruseni)&&(ododo<(odo_preruseni+8))) rr=RR_PRERUSENI; |
if((ododo>odo_cihla)&&(ododo<(odo_cihla+8))) rr=RR_PRERUSENI; |
if((ododo>odo_tunel)&&(ododo<(odo_tunel+8))) rr=RR_PRERUSENI; |
if((ododo>odo_problem1)&&(ododo<(odo_problem1+8))) rr=RR_PRERUSENI; |
if((ododo>odo_problem2)&&(ododo<(odo_problem2+8))) rr=RR_PRERUSENI; |
if((ododo>odo_problem3)&&(ododo<(odo_problem3+8))) rr=RR_PRERUSENI; |
// Elektronicky diferencial 2. cast |
if (r1>(CASAVR-CASMIN-rr)) r1=(r1<<1)+rr-(CASAVR-CASMIN); // Neco jako nasobeni |