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

Brake Pedal Position and Brake Pedal Light Logic #288

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

jabrap1
Copy link
Contributor

@jabrap1 jabrap1 commented Nov 3, 2024

No description provided.

@BlakeFreer BlakeFreer changed the base branch from main to dev/controls November 3, 2024 20:32
firmware/shared/controls/brake_pedal_lights_test.cc Outdated Show resolved Hide resolved
firmware/shared/controls/brake_pedal_lights_test.cc Outdated Show resolved Hide resolved
firmware/shared/controls/brake_pedal_lights.h Outdated Show resolved Hide resolved
firmware/shared/controls/brake_pedal_lights.h Outdated Show resolved Hide resolved
firmware/shared/controls/brake_pedal_lights.h Outdated Show resolved Hide resolved
firmware/shared/controls/brake_pedal_lights.h Outdated Show resolved Hide resolved
Copy link
Contributor

@BlakeFreer BlakeFreer left a comment

Choose a reason for hiding this comment

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

Tests are good and complete

firmware/shared/controls/brake_pedal_lights.h Outdated Show resolved Hide resolved
Copy link
Contributor

@BlakeFreer BlakeFreer left a comment

Choose a reason for hiding this comment

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

good job

@BlakeFreer BlakeFreer merged commit 790ce02 into dev/controls Nov 5, 2024
@BlakeFreer BlakeFreer deleted the jabrap1/feature branch November 5, 2024 01:17
BlakeFreer added a commit that referenced this pull request Jan 6, 2025
* create add function (#245)

* ctrls (#258)

* adds asserts for booleans (#260)

* Changed template to match 'controls' template, added template to functions to account for unknown variables, cleaned up error handling function  (#259)

* driver_interface_error_handling

* driver_interface_error

* driver_interface_error_handling cleanup and test cases

* Delete controls_rewrite_folder/driver_interface_error_handling.cpp

* Added some test cases, removed edge cases, got rid of tolerance

* changed test casing, got rid of controls rewrite folder, moved to firmware/shared/controls

* Delete controls_rewrite_folder directory

* fmt

* fmt

* revision

* revision

* revision

* Delete firmware/shared/controls/driver_interface_error_handling_test.cpp

Deleting cpp file

* controls: Torque Request (#272)

* Finished my drivercontrols (blue) function + test case file, but having trouble compling with the MakeFile.

* formatting

* Fixed the template, the function behavior, Makefile issues, and the test file.

* Fixed naming conventions, renamed files, and added possible boolean combinations with all tests passed.

* Changed the test conditions + added detailed explanations

---------

Co-authored-by: BlakeFreer <[email protected]>

* Brake Pedal Position and Brake Pedal Light Logic (#288)

* wrote brake_pedal_light

* Implemented recommended edits to functions and split brake_pedal_lights into two functions

* Changed line 14, the return statement, as requested

* removed unneeded import

* Steering Angle Logic (#290)

* created steering angle function

* fixed typo, removed unneeded import, and removed comment

* Controls: TC Scale Factor (#292)

* Controls: TC Scale Factor

* Removed the redundant function and made the stateflow placeholder the CalculateTCScaleFactor function. Also fixed the bounding if-statement in actual slip function.

* Shene7/feature (#287)

* Raw Work

* added open_loop_tv algorithm, lookup table handling, etc

* created look up table datatypes, made tv factoring a tuple data type

* before formatting

* test

* formatted test cases

* Test Case Rewrite3

* made variable name and formatting changes, see replies to comments in pr

* applied comments, changed EnableTorqueVectoring to bool

* got rid of bool function, changed var naems

* got rid of boolean checks

* Motor Torque logic and testing (#302)

* Motor Torque logic and testing, need feedback on how to incorporate finite state machine into final code

* scale was off by a factor of 100

* fixed issues regarding using shared library, while loop, and static variables. Unsure if the reset method implemented currently is the most efficent way of reseting between tests

* Update include paths

* added a reset flag to the CalculateMotorTorque function and rid of classes

* Removed default case, moved enums into ctrl namespace, and added extra testcases

* removed scale factor

---------

Co-authored-by: BlakeFreer <[email protected]>

---------

Co-authored-by: shene7 <[email protected]>
Co-authored-by: OJ Esene <[email protected]>
Co-authored-by: Peter Jabra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants