-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Motors Test Program #89
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merci pour la PR! Plein de bonnes idées, c'est cool! :)
J'ai fait quelques retours sur les termes utilisés afin de préciser un peu les concepts.
Bon boulot @YannLocatelli ! :)
DigitalOut motor_right_dir_1(PE_4); | ||
DigitalOut motor_right_dir_2(PE_5); | ||
PwmOut motor_right_speed(PA_2); | ||
|
||
DigitalOut motor_left_dir_1(PC_13); | ||
DigitalOut motor_left_dir_2(PI_8); | ||
PwmOut motor_left_speed(PA_1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
peut être utiliser les noms définis par PinNames.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in a9f7ec0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Par contre pour avoir le même comportement, les directions des moteurs de gauches ont été inversés:
DigitalOut motor_left_dir_1(MOTOR_LEFT_DIRECTION_2);
DigitalOut motor_left_dir_2(MOTOR_LEFT_DIRECTION_1);
L'inversion remonte au tableau en ligne Leka-MCU_Pins.gsheet
* Two motors lib * Add brake feature in one motor * Add test to choose motor * Add SD in prevision, for logs of measure of current for each motor
* Add 30s delay at beginning, ge time to close the robot * Same speed outside of test * Old program test verifying difference between stop and brake * Remove brake * Change translation to direction * Change translate to move * Change turn to rotation * Constrain speed by uint8_t and convert it to [0.0f, 1.0f]
b07a404
to
bfa176b
Compare
Co-authored-by: Ladislas de Toldi <ladislas@detoldi.me>
Description
Réalisation d'un programme de test pour essayer les différents moteurs (charbon et balais classiques) selon leurs rapports de réduction (1/20 et 1/30) et "pneus" (shore 60, 70 et 80).
Related story → #90