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

Rename forgotten functions #1731

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/libpanda/safety_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def setup_safety_helpers(ffi):
int get_hw_type(void);
void set_timer(uint32_t t);

void safety_tick_current_rx_checks();
bool addr_checks_valid();
void safety_tick_current_safety_config();
bool safety_config_valid();

void init_tests(void);

Expand Down Expand Up @@ -92,8 +92,8 @@ def get_vehicle_moving(self) -> bool: ...
def get_hw_type(self) -> int: ...
def set_timer(self, t: int) -> None: ...

def safety_tick_current_rx_checks(self) -> None: ...
def addr_checks_valid(self) -> bool: ...
def safety_tick_current_safety_config(self) -> None: ...
def safety_config_valid(self) -> bool: ...

def init_tests(self) -> None: ...

Expand Down
4 changes: 2 additions & 2 deletions tests/safety_replay/replay_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def replay_drive(lr, safety_mode, param, alternative_experience, segment=False):

# skip start and end of route, warm up/down period
if msg.logMonoTime - start_t > 1e9 and end_t - msg.logMonoTime > 1e9:
safety.safety_tick_current_rx_checks()
safety_tick_rx_invalid |= not safety.addr_checks_valid() or safety_tick_rx_invalid
safety.safety_tick_current_safety_config()
safety_tick_rx_invalid |= not safety.safety_config_valid() or safety_tick_rx_invalid

if msg.which() == 'sendcan':
for canmsg in msg.sendcan:
Expand Down