-
Notifications
You must be signed in to change notification settings - Fork 40
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
MADS: Steering Mode on Brake Pedal Press #89
Conversation
Reviewer's Guide by SourceryThis pull request introduces a new feature that allows lateral control to be paused, rather than fully disengaged, when the brake pedal is pressed. This is implemented by adding a new Sequence diagram for lateral control with pause on brakesequenceDiagram
participant Driver
participant MADS
Driver->>MADS: Engages brake pedal
activate MADS
MADS->>MADS: Checks pause_lateral_on_brake
alt pause_lateral_on_brake is true
MADS->>MADS: Pauses lateral control
else pause_lateral_on_brake is false
MADS->>MADS: Disengages lateral control
end
deactivate MADS
Sequence diagram for lateral control re-engaging after brake release with pause on brakesequenceDiagram
participant Driver
participant MADS
Driver->>MADS: Releases brake pedal
activate MADS
MADS->>MADS: Checks pause_lateral_on_brake
alt pause_lateral_on_brake is true and brake was the only disengage reason
MADS->>MADS: Requests lateral control
else
MADS->>MADS: Does not request lateral control
end
deactivate MADS
Updated class diagram for MADSStateclassDiagram
class MADSState {
bool system_enabled
bool disengage_lateral_on_brake
bool pause_lateral_on_brake
bool controls_requested_lat
bool controls_allowed_lat
}
note for MADSState "Added pause_lateral_on_brake field"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This reverts commit e670860.
Summary by Sourcery
Adds a new parameter to
set_mads_params
to control whether lateral control is paused when the brake pedal is pressed.Enhancements:
set_mads_params
to control whether lateral control is paused when the brake pedal is pressed.disengage_lateral_on_brake
topause_lateral_on_brake
to better reflect the functionality.