Ouvrir le menu principal
Accueil
Au hasard
Connexion
Configuration
À propos de Polybot Grenoble
Avertissements
Polybot Grenoble
Rechercher
Modifications
← Modification précédente
Modification suivante →
Robot principal
(voir la source)
Version du 8 mars 2021 à 15:56
43 octets supprimés
,
8 mars 2021 à 15:56
→rbtMovement.c
Ligne 57 :
Ligne 57 :
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
void rbtMovement Init ( uint16_t whDist , uint16_t dmWh1, uint16_t dmWh2,
void rbtMovement Init ( uint16_t whDist , uint16_t dmWh1, uint16_t dmWh2,
−
uint16_t
ti c k s
1 , uint16_t
t i c k s
2 )
+
uint16_t
ticks
1 , uint16_t
ticks
2 )
</syntaxhighlight>
</syntaxhighlight>
Ligne 69 :
Ligne 69 :
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
−
void rbtMove (
in t32_ t d i s t
) //Deplacement du robo t en
l i g n e d r o i t e
en
mm∗/
+
void rbtMove (
int32_t dist
) //Deplacement du robo t en
ligne droite
en
mm
−
2
void rbt_turn (
in t16_ t a ngl e
) //
Ro ta tion
du
ro bo t
en
d eg r e
+
void rbt_turn (
int16_t angle
) //
Rotation
du
robot
en
degre
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">
−
static void rb tS ta teMachine (
in t32_ t
targetEncoderCountsM1 ,
in t32_ t
+
static void rb tS ta teMachine (
int32_t
targetEncoderCountsM1 ,
int32_ttargetEncoderCountsM2
)
−
targetEncoderCountsM2
)
</syntaxhighlight>
</syntaxhighlight>
Yassir zraigui
38
modifications