Skip to content

Commit

Permalink
Update tesla_tester.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWAbrahams authored Jun 15, 2018
1 parent 2a8c2c2 commit d8fc9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tesla_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def tesla_tester():

# BDY 0x248 is the MCU_commands message, which includes folding mirrors, opening the trunk, frunk, setting the cars lock state and more. For our test, we will edit the 3rd byte, which is MCU_lockRequest. 0x01 will lock, 0x02 will unlock:
print("Unlocking Tesla...")
p.can_send(0x248, "\x00\x00\x02\x00\x00\x00\x00\x00", bus_num)
p.can_send(0x248, "\x00\x00\x02\x00\x00\x00\x00\x00", body_bus_num)

#Or, we can set the first byte, MCU_frontHoodCommand + MCU_liftgateSwitch, to 0x01 to pop the frunk, or 0x04 to open/close the trunk (0x05 should open both)
print("Opening Frunk...")
p.can_send(0x248, "\x01\x00\x00\x00\x00\x00\x00\x00", bus_num)
p.can_send(0x248, "\x01\x00\x00\x00\x00\x00\x00\x00", body_bus_num)

#Back to safety...
print("Disabling output on Panda...")
Expand Down

0 comments on commit d8fc9ff

Please sign in to comment.