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

Support for Black Panda SMDPS #19

Open
wants to merge 1 commit into
base: sunnypilot_smdps
Choose a base branch
from
Open
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: 5 additions & 3 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ void debug_ring_callback(uart_ring *ring) {
}

void smdps_clu11(void) {
CAN1->sTxMailBox[0].TDLR = 0x00;
CAN1->sTxMailBox[0].TDTR = 4;
CAN1->sTxMailBox[0].TIR = (0x2AAU << 21) | 1U;
CAN_FIFOMailBox_TypeDef to_send;
to_send.RDLR = 0x00;
to_send.RDTR = 4;
to_send.RIR = (0x2AA << 21) | 1U;
can_send(&to_send, 0, false);
}

// ****************************** safety mode ******************************
Expand Down