PR to Merge in Launch Control, PID, Hashtable, and globalConstants files#185
Open
PR to Merge in Launch Control, PID, Hashtable, and globalConstants files#185
Conversation
Most of the calculations should be in nM for simplicity sake, the nM--> decinM conversion should be done as the last step, to ensure readability/
…ake a saturation value instead of setpoint on initialization bc the setpoint is updated every cycle anyways, and removing the separate pl pid struct
… forced TQ equation override. LUT still gives bad values. Bug fix to anti-windup measures. and the dbc has been updated to expect N-m outputs from the pid and deciN-m commandedTorque
…ommenting or defining of code. also, changing a function name to give better clarity to the caller of the function. Finally, plpPID added back in, with a hopefully redundant clamp on the Torque request.
…tial for a multiply by 0 call which would massively derail the incomplete factorization of the double linear interpolation equation.
…ndition checks for launch control
… for unreasonable precision, or 10^-3 for a more reasonable amount of digits beyond the decimal point. Saving before changing branches.
…ndition checks for launch control
… for unreasonable precision, or 10^-3 for a more reasonable amount of digits beyond the decimal point. Saving before changing branches.
… conversion issue-essentially turning the equation into -> 0*1000=0
…get about it. Also, taking the time to fix up some comments, improving whitespace for readability, and moving the Nm -> DNm conversion from Launch Control into MCM for readability purposes.
…for this exact thing
…ngelectric/VCU into SR-16_Launch_Control
…ilures, with reported redefinitions in canManager, launch control, and other files. Will investigate some other time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Launch Control is disabled with an #ifdef, can be reversed by uncommenting a line in global Constants.h at the end of the file
Also adding in very old power limiting changes and disabling the system since it doesn't work.