forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed GPS enabling on EON builds * Bumped version * Added automated GPS test * Added import * Fixed linting
- Loading branch information
1 parent
bcd556b
commit 3b35621
Showing
4 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.7.2 | ||
v1.7.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import time | ||
from panda import PandaSerial | ||
from .helpers import reset_pandas, test_all_gps_pandas, panda_connect_and_init | ||
|
||
# Reset the pandas before running tests | ||
def aaaa_reset_before_tests(): | ||
reset_pandas() | ||
|
||
@test_all_gps_pandas | ||
@panda_connect_and_init | ||
def test_gps_version(p): | ||
serial = PandaSerial(p, 1, 9600) | ||
# Reset and check twice to make sure the enabling works | ||
for i in range(2): | ||
# Reset GPS | ||
p.set_esp_power(0) | ||
time.sleep(0.5) | ||
p.set_esp_power(1) | ||
time.sleep(1) | ||
|
||
# Read startup message and check if version is contained | ||
dat = serial.read(0x1000) # Read one full panda DMA buffer. This should include the startup message | ||
assert b'HPG 1.40ROV' in dat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters