Différences entre les versions de « Code (CDR2020) »

De Ares Wiki
Aller à la navigation Aller à la recherche
Ligne 1 : Ligne 1 :
= Fonction Main =
== Fonction Main ==
#Initialisation
#Initialisation
##Drivers
##Drivers
Ligne 15 : Ligne 15 :
##Début du match
##Début du match
#Compteur global
#Compteur global
== Programme Moteurs ==
= Programme Moteurs =
= Fonction Initialisation_des_drivers=
== Fonction Initialisation_des_drivers==
#Désactivation des moteurs
#Désactivation des moteurs
#Rotation du moteur gauche vers l'avant
#Rotation du moteur gauche vers l'avant
#Rotation du moteur droit vers l'avant
#Rotation du moteur droit vers l'avant
= Fonction Rotation du moteur gauche vers l'avant =
== Fonction Rotation du moteur gauche vers l'avant ==
#Dirige le moteur gauche vers l'avant
#Dirige le moteur gauche vers l'avant
= Fonction Rotation du moteur droit vers l'avant =
== Fonction Rotation du moteur droit vers l'avant ==
#Dirige le moteur droit vers l'avant
#Dirige le moteur droit vers l'avant
= Fonction Rotation du moteur gauche vers l'arrière =
== Fonction Rotation du moteur gauche vers l'arrière ==
#Dirige le moteur gauche vers l'arrière  
#Dirige le moteur gauche vers l'arrière  
= Fonction Rotation du moteur droit vers l'arrière =
== Fonction Rotation du moteur droit vers l'arrière ==
#Dirige le moteur droit vers l'arrière
#Dirige le moteur droit vers l'arrière

Version du 10 novembre 2020 à 16:29

Fonction Main

  1. Initialisation
    1. Drivers
    2. Codeurs
    3. Broches
    4. Pavillons
    5. Timers et tikers
    6. Capteurs à ultrasons
  2. Debug
    1. PC et Blutooth
  3. Choix de la statégie
    1. Bleu ou jaune
  4. Boucle infinie
    1. Le match n'a pas encore commencé
    2. Début du match
  5. Compteur global

Programme Moteurs

Fonction Initialisation_des_drivers

  1. Désactivation des moteurs
  2. Rotation du moteur gauche vers l'avant
  3. Rotation du moteur droit vers l'avant

Fonction Rotation du moteur gauche vers l'avant

  1. Dirige le moteur gauche vers l'avant

Fonction Rotation du moteur droit vers l'avant

  1. Dirige le moteur droit vers l'avant

Fonction Rotation du moteur gauche vers l'arrière

  1. Dirige le moteur gauche vers l'arrière

Fonction Rotation du moteur droit vers l'arrière

  1. Dirige le moteur droit vers l'arrière