Skip to content
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

Merged
merged 7 commits into from
Oct 27, 2020
Merged

Motors Test Program #89

merged 7 commits into from
Oct 27, 2020

Conversation

YannLocatelli
Copy link
Member

@YannLocatelli YannLocatelli commented Oct 20, 2020

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

@YannLocatelli YannLocatelli added the 01 - type: story Clear roadmap to implement a new feature, refactor code, etc. label Oct 20, 2020
@YannLocatelli YannLocatelli added this to In progress in LekaOS - Epics & Stories via automation Oct 20, 2020
@YannLocatelli YannLocatelli self-assigned this Oct 20, 2020
@ladislas ladislas removed this from In progress in LekaOS - Epics & Stories Oct 20, 2020
@ladislas ladislas added this to In progress in LekaOS - Tasks, Bugs & PRs via automation Oct 20, 2020
Copy link
Member

@ladislas ladislas left a 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 ! :)

drivers/Motor/include/MotorBase.h Outdated Show resolved Hide resolved
drivers/Motor/source/Motor.cpp Outdated Show resolved Hide resolved
drivers/Motor/source/Motor.cpp Outdated Show resolved Hide resolved
libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h Outdated Show resolved Hide resolved
libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h Outdated Show resolved Hide resolved
libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h Outdated Show resolved Hide resolved
libs/HardwareTest/LekaMotors/include/TwoMotorsBase.h Outdated Show resolved Hide resolved
LekaOS - Tasks, Bugs & PRs automation moved this from In progress to Review needed Oct 20, 2020
@YannLocatelli YannLocatelli linked an issue Oct 21, 2020 that may be closed by this pull request
20 tasks
@ladislas ladislas added 01 - type: task Something to do and removed 01 - type: story Clear roadmap to implement a new feature, refactor code, etc. labels Oct 22, 2020
Comment on lines 11 to 17
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);
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in a9f7ec0

Copy link
Member Author

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

LekaOS - Tasks, Bugs & PRs automation moved this from Review needed to Review approved Oct 22, 2020
YannLocatelli and others added 7 commits October 27, 2020 18:11
* 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]
@ladislas ladislas removed a link to an issue Oct 27, 2020
20 tasks
@ladislas ladislas changed the title Programme test moteurs Motors Test Program Oct 27, 2020
@ladislas ladislas merged commit e1be2c9 into develop Oct 27, 2020
LekaOS - Tasks, Bugs & PRs automation moved this from Review approved to Done Oct 27, 2020
@ladislas ladislas deleted the yann-motors-DOX branch October 27, 2020 17:20
ladislas added a commit that referenced this pull request Nov 25, 2020
Co-authored-by: Ladislas de Toldi <ladislas@detoldi.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - type: task Something to do
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants