Commit Graph

10507 Commits

Author SHA1 Message Date
Angus Gratton fbcd0821c9 cabana/cameraview: Scale the glViewPort by devicePixelRatio() (#27941)
* cameraview: Scale the glViewPort by devicePixelRatio()

This fixes an issue seen in Cabana on a "hidpi" system with Wayland where
devicePixelRatio() != 1 and the video doesn't take up the full widget area.

On the recommended Ubuntu 20.04 install I wasn't able to reproduce, because
devicePixelRatio() was always equal to 1 even with scaling to 200% or 300%. It
might be different if "Fractional Scaling" is enabled in GNOME (I couldn't make
that option work in mv WM.)

Was going to enable just for Linux, but it appears to also be recommended for
Retina MacOS:
https://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios

... so have worked from the assumption that glViewport() always takes dimensions
in device pixels, never the "device independent pixels" of Qt.

* Update selfdrive/ui/qt/widgets/cameraview.cc

* Update selfdrive/ui/qt/widgets/cameraview.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-19 11:06:54 -07:00
Adeeb Shihadeh b3c101527f bump panda 2023-04-19 10:56:38 -07:00
Willem Melching 7f5cda00b5 cabana: more advanced DBC management features (#27968)
* cabana: improve menu to manage individual DBCs

* remove from single bus

* comments

* close explicitly

* new before open

* whitespace

* remove old code

* clipboard actions

* cleanup actions

* sections instead of nested menu

* consistent bus format
2023-04-19 10:49:30 -07:00
Dean Lee 590b1bc206 cabana: startup stream chooser dialog (#27938)
* new StreamDialog

* choose dbc file

* update last_dir

* move to /streams

* cleanup

* add stretch

* catch panda exception

* cleanup

* cleanup

* small cleanup

* fix pandaStream crash caused by a failed connection

* static function to create stream widget

* cleanup
2023-04-19 10:49:06 -07:00
Willem Melching 475903e244 cabana: enable Hi-DPI support on MacOS (#27965) 2023-04-19 10:48:36 -07:00
Willem Melching 8da5745970 cabana: use cyan/red coloring for values that move mostly up/down (#27966) 2023-04-19 10:45:07 -07:00
Dean Lee 8ad2d84aeb cabana: refactor the cache for CAN events (#27969) 2023-04-19 10:44:52 -07:00
Dean Lee f9568e9818 cabana: make head section movable (#27971)
* set sections movable

* change setting key to v3

* add comment

* remove restorestate from MainWindow
2023-04-19 10:28:09 -07:00
Shane Smiskol 3c55f49dd8 Ford: simple rate limits (#27446)
* simple limits

* add script

* useless

* remove script

* cleanup comments

* bump curvature limits

* divide by 20

* add comment

* add panda safety

* add back notebook with multi route support

* remove

* bump up low speed up

* comment
2023-04-18 23:27:49 -07:00
Dean Lee de62972e2c cabana: reduce the number of ticks on the Y-axis (#27964) 2023-04-18 22:48:36 -07:00
Saber422 500c049590 VW MQB: add missing 2022 KODIAQ FW (#27962)
* VW MQB: add missing 2022 KODIAQ FW

route:8a5da7c1d1783730|2023-04-18--11-40-31--76

* sort

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-04-18 22:38:37 -07:00
Shane Smiskol 9b1095a27e FPv2: only query brands with matching present ECUs (#27697)
* speed up fingerprinting for CAN fp cars

* add comment to describe this behavior

* more explicit, no defaultdict

* do this later

* fix

* a little more clear I think
2023-04-18 21:34:49 -07:00
Dean Lee 0534016b7b boardd: fix scons warning "Two different environments were specified" (#27949) 2023-04-18 18:04:27 -07:00
Shane Smiskol f94528d65d ecu addrs: add warning when skipping remote frame (#27959)
add warning
2023-04-18 15:19:23 -07:00
Shane Smiskol 3924c14b74 ecu addrs: check msg length (#27956)
check length
2023-04-18 13:15:54 -07:00
Shane Smiskol 5aebdb0ad0 Car docs: pass docs flag to car interfaces (#27311)
* docs

* docs

* docs

* docs

* use docs in gm
2023-04-18 12:22:22 -07:00
Willem Melching af5f769d7c cabana: fix MacOS build (#27950) 2023-04-18 12:18:33 -07:00
Angus Gratton ed6e7db3cf replay framereader: Log in some unlikely failure paths (#27942) 2023-04-18 12:17:45 -07:00
Dean Lee dc4b7b37c0 cabana: fix PandaStream crash if no panda found (#27948) 2023-04-18 10:22:57 -07:00
Willem Melching fbe70c43a4 cabana: make highlight fade time independent of playback speed (#27951) 2023-04-18 09:20:42 -07:00
Willem Melching 9c88c3fe4c cabana: fix displaying zero length messages (#27953) 2023-04-18 09:19:51 -07:00
Jafar Al-Gharaibeh 97aeb83f95 Mazda: CX-9 2022, Mazda6 2018 FW (#27918)
* Mazda: CX-9 2022 FW

dongle-id: 7200177292912f30

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Add mazda 6 2018 FW FP

dongle id: 0383a108994bd18b

---------

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
Co-authored-by: Samuel <samuel95_54@hotmail.com>
2023-04-17 23:11:38 -07:00
Dean Lee 6ad4017fd8 cabana: fix unable to scroll to the right edge of the message list. (#27947)
* fix scroll issue

* resize bytes section after model reset
2023-04-17 23:00:05 -07:00
martinl 13c75dc138 Subaru: signals cleanup (#27946)
* Update counter in carstate checks

* Rename es_lkas to es_lkas_state to match signal

* formatting

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-17 22:54:27 -07:00
Shane Smiskol 8f1e67f625 Subaru: always show LKAS active (#27945)
subaru always shows lines if LKAS is enabled (not active), more clear what we're sending
2023-04-17 22:31:59 -07:00
Justin Newberry d59bfa5519 Subaru: infotainment status intercept and rewrite (#27829)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* remove compiler flag stuff

* force error for testing

* bump panda and fix mistake

* wip

* bump panda

* wip

* wip

* forgot checksum and stuff

* add to signals

* rename

* test

* test

* bump panda and opendbc

* bump cereal

* add blank filler

* test

* add steer required to infotainment

* fix missing bit

* fix missing bit

* cleanup for PR

* cleanup for PR

* bump submodules

* wip

* wip

* i wonder what 1 is

* seemed to also be obstacle detected?

* bumppanda

* only if global

* only global gen 2

* fix order

* detect and send

* detect in rest of places

* update refs

* bumpopendbc

* copy whole message (camera sometimes sets these signals)

* bumppanda

* update refs!

* bumppanda

* let's not change this

* same as all the other functions

* Revert "same as all the other functions"

This reverts commit e86dbb695ef84a18f3123720fed37a6b81391cc4.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-17 19:05:16 -07:00
Cameron Clough 3cd00a9b6c tools: add cabana to README 2023-04-17 17:39:03 -07:00
Shane Smiskol 8064de805b bump opendbc (#27944) 2023-04-17 17:13:04 -07:00
Shane Smiskol cb95f1e5f1 bump panda (#27943) 2023-04-17 17:12:34 -07:00
Willem Melching 1016c3f97c cabana: refactor new msg/signal name generation (#27931) 2023-04-17 15:37:41 -07:00
Willem Melching 2a981f5531 cabana: support direct streaming from panda over USB (#27936)
* refactor livestream into devicestream

* add panda stream

* unused

* whitespace

* move logging to base class

* add cmdline args

* Update selfdrive/boardd/boardd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-17 15:37:26 -07:00
Dean Lee a324d79fa3 cabana: fixed the freq column for high-freq messages may be incorrectly displayed as a --. (#27940) 2023-04-17 15:08:22 -07:00
Dean Lee 30ff0bface canaba: display the opened dbc files in the window title bar. (#27939)
* show dbc file name on the window title

* Show all dbc files opened on each bus

* check d
2023-04-17 15:08:08 -07:00
Dean Lee f79654a1e7 cabana: some improvements to messages view (#27935)
* improve messageswidget

* remove double semicolon
2023-04-17 13:39:43 -07:00
Willem Melching d06936843b cabana: remove msg on removing last signal (#27933) 2023-04-17 09:53:04 -07:00
Willem Melching 0f22bb50de cabana: add setting to choose preferred drag direction for new signals (#27932) 2023-04-17 09:52:45 -07:00
Dean Lee ed1f03dc41 cabana: paint sparkline in threads (#27925)
* multiple threading realtime sparkline

* delay visible

* remove msg_id

* cleanup
2023-04-16 10:59:24 -07:00
Dean Lee 48f8c02cf1 cabana: update recent files in menu after save as (#27926) 2023-04-16 09:55:03 -07:00
Cameron Clough 6bed16441c Ford: don't play stock alert chimes (#27923) 2023-04-16 02:39:09 -07:00
Jason Young 3e960b0b32 VW MQB: Cleanup HCA control message (#27757)
* VW MQB: Cleanup HCA control message

* bump panda

* bump submodules

* bump panda/opendbc to comma master

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-15 21:02:33 -07:00
Adeeb Shihadeh d28da7309c bump panda 2023-04-15 19:28:44 -07:00
Adeeb Shihadeh fd50713c2d CI: add job to update pre-commit hooks (#27922)
* CI: add job to update pre-commit hooks

* rm push
2023-04-15 18:08:26 -07:00
Dean Lee f5d66fa2a9 cabana: fix message view performance issues after #27901 (#27908)
* fix message list issues

* override drawBranches, do nothing

* bypass QTreeView::datachanged

* remove data copy in binaryview::updateState

* rename to x_v2
2023-04-15 16:25:24 -07:00
Shane Smiskol 158c951d6f FPv2: add worst case timing test (#27917)
* can FP time

* add

* move the ref up

* assert function

* all brands

* Update selfdrive/car/tests/test_fw_fingerprint.py

* can this can vary a bit more

* or can it
2023-04-14 23:41:12 -07:00
Adeeb Shihadeh af90b08acd set_time: remove extra print 2023-04-14 21:16:59 -07:00
Adeeb Shihadeh f832a71038 pandad: wait for internal panda to come up (#27705)
* pandad: wait for internal panda to come up

* test

* more checks
2023-04-14 14:18:13 -07:00
Nikolai Gorchilov 49ccc0869c 2022 Arteon R Fingerprint (#27913)
New firmware version for the engine, transmission, srs & eps. fwdRadar fingerprint already available.
2023-04-14 12:37:23 -07:00
Saber422 3ffc2b6fb0 VW MQB: add missing 2020 TRANSPORTER T6.1 FW (#27914)
route:0bbe367c98fa1538|2023-04-14--14-58-41--0
2023-04-14 12:35:10 -07:00
Vít Listík 17631948da Updated FW for Skoda Superb III 2016 (#27888) 2023-04-14 12:28:11 -07:00
Shane Smiskol 6ef13f7386 Add other contributor for HR-V port 2023-04-14 12:25:42 -07:00