Igor Biletskyy
5778c0ae5d
H7: fix GMLAN bitbang timer ( #1542 )
...
* init
* move Adeeb's test
* bitbang expected to fail can_health
2023-10-03 13:14:14 -07:00
Adeeb Shihadeh
43bed1aa47
jungle HITL tests setup ( #1665 )
...
* setup new zoo
* run
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-09-30 23:19:06 -07:00
Adeeb Shihadeh
b6e37f25b6
Remove flash logging ( #1674 )
...
* Revert "Disable flash logging (#1667 )"
This reverts commit 62db60595b
.
* Revert "Faster log retrieval (#1484 )"
This reverts commit 694aae9c26
.
* Revert "Flash bounds checking outside of bootstub (#1459 )"
This reverts commit 054344de6b
.
* Revert "Logging (#1445 )"
This reverts commit 0cc91a7f7b
.
* cleanup
* cleanup
2023-09-30 12:49:46 -07:00
Adeeb Shihadeh
62db60595b
Disable flash logging ( #1667 )
...
* disable logging to flash
* update tests
* fix hitl
2023-09-21 15:28:19 -07:00
Justin Newberry
4ea50fbb09
Ruff: propgate config from OP ( #1579 )
2023-08-14 12:52:02 -07:00
Igor Biletskyy
25f1444d73
panda: add CAN-FD throughput test ( #1572 )
...
init
2023-08-10 18:41:50 -07:00
Igor Biletskyy
a651fe3c6b
set OBD to False after test ( #1568 )
...
* reset OBD after test
* add comment
2023-08-07 10:54:39 -07:00
Adeeb Shihadeh
235067a22b
run HITL tests in parallel ( #1566 )
...
* seems to work
* cleanup
* run in ci
* fail on first
* fix jungle scope
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-08-06 20:51:26 -07:00
Adeeb Shihadeh
77b09a3160
misc hitl test cleanup ( #1562 )
...
* misc hitl test cleanup
* adjust that
* update
* tres fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
2023-08-06 16:30:21 -07:00
Adeeb Shihadeh
3dc3b58e20
ruff: enable bugbear checks ( #1565 )
2023-08-06 14:59:22 -07:00
Adeeb Shihadeh
33a95d6bea
pedal: fix warning on invalid serial ( #1563 )
...
* pedal: fix warning on invalid serial
* fix
* fix:
* shouldn't need that
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-08-06 13:47:37 -07:00
Adeeb Shihadeh
c66b98b2a6
finish esp/gps removal ( #1559 )
2023-08-06 12:29:54 -07:00
Adeeb Shihadeh
6e1d35b033
more complete jungle reflash ( #1557 )
...
* more complete jungle reflash
* no spi!
* mv flash
* mv that
2023-08-04 21:51:09 -07:00
Adeeb Shihadeh
d7120be904
panda jungle ( #1547 )
...
* mv jungle
* match pedal style
* fix linter
* fix fw path
* fix paths
* safety!
2023-08-03 23:55:13 -07:00
Adeeb Shihadeh
1eac0d7634
HITL: remove old check, it's always checked on panda connect now
2023-07-20 11:25:06 -07:00
Adeeb Shihadeh
5d873444b2
SPI: connect by VERSION command ( #1495 )
...
* SPI: connect by VERSION command
* shorter timeout
* add exception
* simple test
* fallback
* bootstub check
* update comments
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-16 19:33:18 -07:00
Adeeb Shihadeh
14fd5ff5a3
SPI: send bootstub status in version request ( #1492 )
...
* mv first
* switch to crc8
* bootstub
* test
* cleanup
* little more
* misra
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-03 15:23:12 -07:00
Adeeb Shihadeh
d693e89df2
SPI: send hw type with version ( #1490 )
...
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 23:50:30 -07:00
Adeeb Shihadeh
abcbfb44b4
SPI: send serial with protocol version ( #1489 )
...
* SPI: send serial with protocol version
* misra
* fix test
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 23:13:57 -07:00
Adeeb Shihadeh
5abb2b58da
SPI: add protcol version request ( #1488 )
...
* SPI: add protcol version request
* quick test
* fix linter
* misra
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-07-02 15:51:35 -07:00
Igor Biletksyy
04f0c4261c
Revert "HITL tests: reset jungle on init ( #1473 )"
...
This reverts commit 1c574f8a99
.
2023-06-28 12:34:18 -07:00
Igor Biletksyy
6309bb8a6a
Normal to have REC and TEC counters > 0, but less than threshould
2023-06-26 14:16:34 -07:00
Adeeb Shihadeh
1c574f8a99
HITL tests: reset jungle on init ( #1473 )
...
Co-authored-by: Comma Device <device@comma.ai>
2023-06-20 19:34:05 -07:00
Adeeb Shihadeh
6eb3a7324f
tres: enable fan overshoot test ( #1465 )
...
* tres: enable fan overshoot test
* rm
2023-06-16 21:56:11 -07:00
Adeeb Shihadeh
c6283759e6
increase fan test timeout, can take a while to recover
2023-06-16 14:06:32 -07:00
Adeeb Shihadeh
fc994f5cf9
HITL: check FW version before every test ( #1463 )
2023-06-16 13:59:07 -07:00
Robbe Derks
0cc91a7f7b
Logging ( #1445 )
...
* try 1
* some fixes
* fix some misra
* first poc working
* more things
* more misra fixes
* fix misra
* add rate limiting
* fix misra
* add some unit tests through libpanda
* add more tests and fix some stuff
* fix misra again
* add startup log hitl test
* list
* don't fail on wrong timestamps
* improvements
* fix tests
* expected logs test?
* not sure why this passed
* oh, it doesn't reset
* only show last few
* guess at expected logs
* needs this
* ugh
* reduce compiler warnings
* adjust expected logs
* this is correct
* is it really 1?
* min max
* reduce spam in SPI test
* some cleanup
2023-06-13 17:00:56 +02:00
Adeeb Shihadeh
adc0c12f7b
HITL tests: enable flashing tests on tres
2023-06-11 19:56:09 -07:00
Adeeb Shihadeh
a4ed5bb943
adjust timeouts ( #1444 )
2023-06-04 21:17:44 -07:00
Adeeb Shihadeh
92ed48ae5c
HITL tests: add timeouts ( #1352 )
...
* set timeout
* closest
* more timeout
* fan test is slow
* retry
* break
* bump
2023-06-04 01:00:17 -07:00
Adeeb Shihadeh
e1e9bd048d
benchmarking script
2023-06-03 15:22:47 -07:00
Adeeb Shihadeh
4d7abcc2e6
PandaDFU: don't reset in program_bootstub ( #1433 )
2023-05-21 20:05:21 -07:00
Adeeb Shihadeh
52f96bac68
spi: nack on can tx endpoint if buffer is full ( #1426 )
...
* spi: nack on can tx endpoint if buffer is full
* handle in python lib
* fix timeout
* fix timeout
* fix linter
* cleanup
* fix
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-05-19 22:43:34 -07:00
Adeeb Shihadeh
a93bc954c5
SPI HITL tests + cleanup ( #1417 )
...
* start comms hitl tests
* pull that out
* revert that
* more test
* fix warnings
* fix linter
* another simple case
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-05-17 17:13:12 -07:00
Robbe Derks
2c937656cf
Continuous harness detection ( #1402 )
...
* read in mV and make threshold board-dependent
* refactor and add SBU voltages to health
* refactor relay driving
* more refactoring and readout lock
* avoid race condition
* fix misra
* continuous detection
* 1Hz is fine
* another race condition
* use harness detection to trigger bootkick
* update orientation detection test
* more in-depth harness tests
* fix ignition
* fix
* raise threshold
2023-05-08 13:30:23 +02:00
Adeeb Shihadeh
272b81e97b
fan: fix stall detection ( #1351 )
...
* cleanup and fix
* dos must stall
* clean those up
* fix misra
* more test
* fix import
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-04-20 15:44:12 -07:00
Adeeb Shihadeh
cf307348af
CI: run HITL tests on tres ( #1326 )
...
* run on tres
* disable those for now
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-04-18 22:17:11 -07:00
Adeeb Shihadeh
0b03ef5468
HITL tests: skip internal tests on uno ( #1350 )
...
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-04-18 16:15:27 -07:00
Robbe Derks
d3904a9f75
HITL fan test ( #1330 )
...
* hitl fan test
* enable cooldown on dos as well
* small cleanup
* get expected RPM from panda class
* fix
* overshoot test
* fix max RPM getting
* fix percentage
* revert cooldown fix
---------
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-18 14:47:22 -07:00
Adeeb Shihadeh
9cd01ac263
PandaDFU: retry SPI comms ( #1348 )
...
* retry
* set exc
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-04-16 14:43:58 -07:00
Adeeb Shihadeh
22b8e5df7f
add extra fault assert in HITL tests for context
2023-04-12 16:28:45 -07:00
Adeeb Shihadeh
6f852b44a9
SPI: log checksum errors in health ( #1334 )
...
* SPI: log checksum errors in health
* actually send it
* check in hitl teardown
* check that
* fix misra
2023-04-05 22:05:14 -07:00
Adeeb Shihadeh
eef3d026e3
CI: run HITL tests on dos ( #1304 )
...
* run on dos
* skip voltage on dos
* run these
* revert that
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-04-03 20:21:10 -07:00
Adeeb Shihadeh
7aaca348c2
HITL tests: nose -> pytest ( #1301 )
...
* HITL tests: nose -> pytest
* run all
* add back partial tests
* big speed up
* fix skipping
* enable all
* that's expected
* clean up after ourselves
* jungle is fixture
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
2023-03-22 21:38:37 -07:00
Igor Biletskyy
75792fb255
Fix different ADC scales ( #1288 )
...
* different ADC scales
* add HITL
* we had it, remove
2023-03-14 14:49:39 -07:00
Adeeb Shihadeh
18230831f3
PandaDFU: abstract out USB comms ( #1274 )
...
* wip
* revert that
* split list + connect
* some more
* mypy fix
* add clear status back
* rename
* cleanup
* cleaner mypy fix
---------
Co-authored-by: Comma Device <device@comma.ai>
2023-03-06 09:24:00 -08:00
Adeeb Shihadeh
946f952aa7
DFU HITL tests ( #1276 )
...
* DFU HITL tests
* fix + types
* fix
* clear first
2023-03-05 20:19:27 -08:00
Robbe Derks
d6af117c62
Microsecond timer fix ( #1236 )
...
* add microsecond timer readout
* add CI test
* fix
2023-02-14 12:16:15 +01:00
Adeeb Shihadeh
e7f36a2992
python: assume F4 MCU for bootstubs without bcdDevice set ( #1229 )
...
* python: assume F4 MCU for bootstubs without bcdDevice set
* cleanup
2023-01-28 14:41:52 -08:00
Adeeb Shihadeh
76d0459182
cleanup MCU definitions ( #1226 )
...
* cleanup MCU definitions
* rename
* enum
* enum
* fix that
2023-01-26 20:54:11 -08:00