* Fix get_params_for_docs call to use correct parameters
Updated the function call to match the required arguments by removing the redundant 'model' parameter. This ensures compatibility with the function definition and prevents potential errors.
* Add _tx_acc_state_msg method and standardize PT_BUS usage
Introduce the _tx_acc_state_msg method in Hyundai safety tests to handle ACC state messaging. Replace hardcoded bus values with the self.PT_BUS variable for consistency and maintainability across SCC_CONTROL messages.
* Add MADS heartbeat engaged state validation test
Introduce a new test function `test_heartbeat_engaged_mads_check` to verify the behavior of MADS heartbeat engagement logic under varying conditions. This ensures correct state transitions and validates robustness against mismatched heartbeat signals.
* Increase timeout for safety mutation tests to 60 minutes
Extended the timeout for the entire safety mutation tests workflow and its individual steps from 20 and 10 minutes respectively to 60 minutes. This change ensures that longer-running tests complete successfully without premature termination.
This commit introduces various safety features required for the SunnyPilot project into the car safety interfaces. A significant change is the addition of "safety_mads.h" file which includes the necessary declarations and definitions for maintaining safety in car operations, such as updating the button state and controlling the vehicle based on current conditions. The "safety_mads.h" file is then included in safety.h. Code related to the lateral control of the vehicle, handling of button presses, and car safety checks for different car models are updated to accommodate these new safety features. Furthermore, updates are made to ensure vehicle control remains safe and transitions between control states happen correctly. This not only enhances the safety functions of the system but also enables greater connectivity with the SunnyPilot system.
* Hyundai CAN FD: Steering API updates
* comments
* comments
* keep it for now
* not used
* should use DBC spec
* consistent
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* reimplement
* use average wheel speed
* fix factor with eEgoRaw
* Revert "fix factor with eEgoRaw"
This reverts commit 35f3624b614fc7179952714829ee6833775f4914.
* Revert "use average wheel speed"
This reverts commit ec4e9c165796139d529d0ef2ec50ee7d00ef98d1.
* revert to previous
* mutation again ugh
* mutation you got to be kidding me
* nice, this passes test models now
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* Hyundai CAN-FD Longitudinal: Enable for radar-based SCC platforms (non-HDA2)
* port safety to opendbc
* fix tests?
* more
* fix tests
* more
* add condition to radar disable tests
* simplify
* more explicit tx checks
* deleted for some reason, caused some models to fail tests
* merge them
* HKG: DBC for Hyundai Palisade and Kia Telluride 2023-24 (HDA2)
* do not include in git
* update name
* rename
* new dbc
* more
* update tests
* fix file name
* move safety tests
* move libsafety
* move safety
* rename imports
* copy over needed (minimalized) board and driver code
* dont test safety here
* add new job for safety tests
fix
* try fix
* ubsan
* ?
?
* missing cffi
* should be final fix
* mac fix
* no mac
* use setup script
* no cd
* this is the correct way to do it
* add misra
* misra fixes
* run
* setup misra
* add missing files
* is this used?
* add that
* Revert "is this used?"
This reverts commit 2f34762dfa65821e1ee398675bf62d1a256ebec8.
* need this
* misra mutation test
* fix
* no race conditions
* test
* cache cppcheck
fix
* setup
* good timeouts
* mutation test
* fix
* no
* Revert "no"
This reverts commit 39e10a045a4a5411a64de791ae463461f8a5f37b.
* already tested
* move Safety Model readme section to opendbc
* fix
* fix
* disable mutation tests for merge
* namespace
* test no cache
* 1m
1m