-
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
yann hugo/feature/sm/add emergency stop state #853
yann hugo/feature/sm/add emergency stop state #853
Conversation
HPezz
commented
Jun 8, 2022
•
edited by YannLocatelli
Loading
edited by YannLocatelli
- Validé sur le robot
- ✨ (sm): Add Shutoff State + Emergency Stop Event
- ⚡ (rc): Add on_entry Shutoff State, RC turnOffActuators
- 🚸 (os): Link RFID event to SM event (Emergency Stop)
- 🚸 (sm): Add transition from Shutoff to Working
- 🚸 (sm): Add transition from Shutoff to Charging
- 🚸 (sm): Add transition from Charging to ShutOff
- 🚸 (sm): Add transition from Idle to ShutOff
- 🚸 (sm): Add transition from Sleeping to ShutOff
- 🚚 Rename ShutOff in EmergencyStopped
Close #850 in favour of this one |
Codecov Report
@@ Coverage Diff @@
## develop #853 +/- ##
===========================================
+ Coverage 95.36% 95.39% +0.02%
===========================================
Files 115 115
Lines 2544 2560 +16
===========================================
+ Hits 2426 2442 +16
Misses 118 118
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
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.
Good
Note. Le log_error
peut-être retiré dans cette PR
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.
LGTM as well 👍
quelques petits changements:
- renommer les commits pour avoir
emergency_stop/ped
et passhut_off
- dans la transition table, je mettrai toutes les
state + emergency_stop
ensemble, ça simplifie la lecture et ça sera plus facile à ajouter dans le futur -- ça montre aussi que c'est homogène pour toutes les states et on peut vérifier qu'on en a pas oublié
a336b85
to
9e25588
Compare
First transition from Working to Shutoff with Emergency Stop event
9e25588
to
b0421b2
Compare
Event command_received
Event charge_did_start
b0421b2
to
f9e5163
Compare
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.
Very Good Job 👌
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.
LGTM 👍 modulo la fonction de turn off qu'il faut renommer.
void turnOffActuators() final | ||
{ | ||
_lcd.turnOff(); | ||
stopActuators(); | ||
} | ||
|
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.
est-ce qu'on a besoin d'une nouvelle fonction ici? on ne peut pas mettre le lcd dans stopActuators
?
si on peut pas, il faut un nom qui montre la différence et les mettre l'une à côté de l'autre dans le code (celle-ci en dessous)
void turnOffActuators() final | |
{ | |
_lcd.turnOff(); | |
stopActuators(); | |
} | |
void stopActuatorsAndLcd() final | |
{ | |
_lcd.turnOff(); | |
stopActuators(); | |
} | |
libs/RobotKit/include/StateMachine.h
Outdated
struct turn_off_actuators { | ||
auto operator()(irc &rc) const { rc.turnOffActuators(); } | ||
}; |
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.
ici aussi il faut faire le rename proposer plus haut pour garder homogène.
parce qu'au fond "stop" et "turn off" c'est globalement la même chose et on voit pas que dans un tu as le lcd et pas dans l'autre.
Kudos, SonarCloud Quality Gate passed! |