Révision 252
Ajouté par casotty il y a plus de 6 ans
branch/sotty/Emb_App/SessionM32C_E8a_system.ini | ||
---|---|---|
[Target]
|
||
M32C E8a SYSTEM=Renesas Communications
|
||
[USER_DATA]
|
||
RESET=ff002e
|
||
RESET=ff0030
|
branch/sotty/Emb_App/programme_principal_etud.c | ||
---|---|---|
short vit_roue = 15;
|
||
short K_roue = 1;
|
||
short ang_roue = 0;
|
||
short capteur = 0;
|
||
|
||
|
||
char num_piste;
|
||
|
||
|
||
... | ... | |
else {
|
||
ang_roue = K_roue*(distance_mur-500);
|
||
}
|
||
capteur = send_requete(INFO_CAPTEUR);
|
||
if(capteur == 0x6301){
|
||
ang_roue = 0;
|
||
vit_roue = 50;
|
||
}
|
||
|
||
}
|
||
|
||
void asserv_roue(VP_INT stacd){
|
||
... | ... | |
ports_mcu();
|
||
lcd_init();
|
||
periph_init();
|
||
periph_nom("#AutoTest*");
|
||
periph_nom("#Camobile*");
|
||
|
||
can_init();
|
||
clavier_init(1);
|
Formats disponibles : Unified diff
Saut de la rouge passé