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

Move safety code into opendbc #2108

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
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
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .python.serial import PandaSerial # noqa: F401
from .python.canhandle import CanHandle # noqa: F401
from .python.utils import logger # noqa: F401
from .python import (Panda, PandaDFU, uds, isotp, # noqa: F401
from .python import (Panda, PandaDFU, isotp, # noqa: F401
pack_can_buffer, unpack_can_buffer, calculate_checksum,
DLC_TO_LEN, LEN_TO_DLC, ALTERNATIVE_EXPERIENCE, CANPACKET_HEAD_SIZE)

Expand Down
34 changes: 17 additions & 17 deletions board/safety.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
#include "can.h"

// include the safety policies.
#include "safety/safety_defaults.h"
#include "safety/safety_honda.h"
#include "safety/safety_toyota.h"
#include "safety/safety_tesla.h"
#include "safety/safety_gm.h"
#include "safety/safety_ford.h"
#include "safety/safety_hyundai.h"
#include "safety/safety_chrysler.h"
#include "safety/safety_subaru.h"
#include "safety/safety_subaru_preglobal.h"
#include "safety/safety_mazda.h"
#include "safety/safety_nissan.h"
#include "safety/safety_volkswagen_mqb.h"
#include "safety/safety_volkswagen_pq.h"
#include "safety/safety_elm327.h"
#include "safety/safety_body.h"
#include "../../opendbc/safety/safety_defaults.h"
#include "../../opendbc/safety/safety_honda.h"
#include "../../opendbc/safety/safety_toyota.h"
#include "../../opendbc/safety/safety_tesla.h"
#include "../../opendbc/safety/safety_gm.h"
#include "../../opendbc/safety/safety_ford.h"
#include "../../opendbc/safety/safety_hyundai.h"
#include "../../opendbc/safety/safety_chrysler.h"
#include "../../opendbc/safety/safety_subaru.h"
#include "../../opendbc/safety/safety_subaru_preglobal.h"
#include "../../opendbc/safety/safety_mazda.h"
#include "../../opendbc/safety/safety_nissan.h"
#include "../../opendbc/safety/safety_volkswagen_mqb.h"
#include "../../opendbc/safety/safety_volkswagen_pq.h"
#include "../../opendbc/safety/safety_elm327.h"
#include "../../opendbc/safety/safety_body.h"

// CAN-FD only safety modes
#ifdef CANFD
#include "safety/safety_hyundai_canfd.h"
#include "../../opendbc/safety/safety_hyundai_canfd.h"
#endif

// from cereal.car.CarParams.SafetyModel
Expand Down
50 changes: 0 additions & 50 deletions board/safety/safety_body.h

This file was deleted.

Loading
Loading