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

Dev/controls #282

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Dev/controls #282

wants to merge 10 commits into from

Conversation

BlakeFreer
Copy link
Contributor

This branch should not be merged until the control system is ready to replace the old simulink model in EV5/FrontController

BlakeFreer and others added 10 commits October 26, 2024 12:52
…tions 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
* 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]>
* 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
* created steering angle function

* fixed typo, removed unneeded import, and removed comment
* 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.
* 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, 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]>
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.

4 participants