Commit Graph

4671 Commits (master)

Author SHA1 Message Date
Adeeb Shihadeh 8718a59330
cleanup selfdrive/test (#23967)
* move test routes and test_models

* move fingerprints

* little more

* remove that
2022-03-14 15:46:16 -07:00
George Hotz 814741dafe
thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
2022-03-14 14:45:50 -07:00
Gijs Koning 57b6fdc17a
Rename RGB vision streams to match YUV streams (#23961)
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-14 14:03:54 -07:00
Gregor Kikelj 08c2d066cf
Improve style in drive_helpers (#23962) 2022-03-14 14:03:28 -07:00
Adeeb Shihadeh f1aab78d08
longitudinal MPC: add MAX_T in T_IDXS_LST (#23960)
* longitudinal MPC: add MAX_T in T_IDXS_LST

* update refs

Co-authored-by: KexianShen <shenkexian@gmail.com>
2022-03-13 21:45:23 -07:00
George Hotz a9b7f3bdd8
12bit only (#23953)
Co-authored-by: Comma Device <device@comma.ai>
2022-03-13 21:43:38 -07:00
Adeeb Shihadeh 5c3f3e44bc
break up selfdrive.config (#23959)
* break up selfdrive.config

* add to release files

* fix import order
2022-03-13 21:42:39 -07:00
Adeeb Shihadeh 8ac30fea24
move pandad to boardd/ (#23958) 2022-03-13 21:21:30 -07:00
Shane Smiskol 629399a449
carControl: add long and lat active fields (#23859)
* proof of concept

* actuators packet describes which actuators are active

* bump cereal

* fixes

* not needed for this PR

* Do Toyota

* add back controlsState.active

* bump cereal

* rest of cars

* in actuators

* add active back

* which

* use controlsState.active for now

* will make an issue

* Update selfdrive/controls/controlsd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* move local lat_active checks into CC.latActive

* remove redundant checks

* move comment

move comment

* fix joystick mode

* get enabled from carcontrol

* do standstill check in controlsd

* make sure we consider the gas press case for GM

* use CC.actuators

* fix

* capitalization

* Bump cereal

Bump cereal

* make intermediate actuators

* similar convention to before

* clean that up

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-03-13 20:58:44 -07:00
Adeeb Shihadeh b9484a6a99
cars: remove duplicated cancel logic (#23956) 2022-03-13 20:22:49 -07:00
Shane Smiskol 156337475e
2019+ Avalon: allow stop and go (#23952)
* Avalon actually has SNG

* update readme

* Revert "update readme"

This reverts commit 076561a057.

* update readme

* fix

* variants as it includes hybrids
2022-03-11 19:45:30 -08:00
George Hotz 0adfef0b34
camera_qcom2 refactor (#23946)
* convert camerastate to a class

* more refactor

* do the refactor in file

* put that one back

* those changes can wait

* very minor

Co-authored-by: Comma Device <device@comma.ai>
2022-03-11 13:37:29 -08:00
Jonathan Frey d653dd843a
Upstreamed and update acados (#23927)
* change acados version to finalized PR https://github.com/acados/acados/pull/791

* acados: update include and x86_64 build

* acados: update pyextra

* adapt mpc files to updated acados

* acados buid: clear acados_template and include dir before updating

* update acados again

* acados MPC: only generate solver, building is done via scons

* update acados to latest acados/master

* c3 libs

* c2 libs

* acados scons files: add acados build script as a dependency

* acados scons files: add libacados.so and ocp_nlp_interface.h, build script not in files_common

* update acados

* adapts long & lat MPC file

* update acados reference commit to acados/master

Co-authored-by: Comma Device <device@comma.ai>
2022-03-11 11:49:27 +01:00
Adeeb Shihadeh 4f8ff154f3 add table support 2022-03-10 17:54:13 -08:00
Adeeb Shihadeh bcf66c1271 this is pretty nice now 2022-03-10 17:06:13 -08:00
George Hotz 5c5a56c5e6
thneed: a more sane way of doing record/debug (#23938)
Co-authored-by: Comma Device <device@comma.ai>
2022-03-10 16:33:35 -08:00
Adeeb Shihadeh 2c0d68120f positional args are nicer 2022-03-10 14:35:44 -08:00
Adeeb Shihadeh 1680f1e251 can_print_changes improvements 2022-03-10 14:32:19 -08:00
martinl 30ae47de05
Subaru: add FW for 2019 Subaru Impreza Sport (#23945) 2022-03-10 13:01:04 -08:00
Shane Smiskol 4f4f18a648
Ford: add minEnableSpeed (#23940) 2022-03-09 12:40:20 -08:00
Willem Melching da5a0c41a0
C3: detect metered Android hotspot (#23734)
* C3: detect metered networks

* show in ui

* fix text layout

* bump cereal

* revert ui changes

* set networkMetered

* add athena method

* add metered logging to uploader

* use in athena uploader

* remove param

* use networkmanager properties to set cell to unmetered

* fix indentation

* no need to check

* bump cereal

* review

* bump cereal
2022-03-09 11:36:52 +01:00
Lee Jong Mun 0b47800e74
ui: white color define (#23930) 2022-03-09 11:24:56 +01:00
Gregor Kikelj 723560c20f
Remove void argument (#23928) 2022-03-08 14:51:27 -08:00
ZwX1616 51638bfe4d
DM: update wheeltouch timeouts to match EU guidelines (#23925)
* update time to match 15/30

* add ref
2022-03-08 13:11:39 -08:00
Igor Biletskyy 0b64ddb678
panda.cc: add panda deep sleep mode(#23911)
* needed for panda deepsleep mode

* add set_deepsleep to panda.cc

* rename to enable_deepsleep

* remove void

* fix value

* bump panda
2022-03-07 18:55:16 -08:00
Adeeb Shihadeh ab8c4f0396 real can table column header 2022-03-07 17:21:07 -08:00
Adeeb Shihadeh 41d8395729
jenkins: don't rely on SSH params (#23924)
* jenkins: don't rely on SSH param

* better ssh enabling

* fix path

* fix that
2022-03-07 15:57:18 -08:00
Adeeb Shihadeh 6ff643c478
Honda: remove redundant steer fault check (#23920) 2022-03-07 10:37:23 -08:00
royjr 82bc052dc6
UI: remove redundant condition (#23918) 2022-03-07 09:57:32 -08:00
Chris Frank b9541d66c0
HKG: Add FW for 2022 Hyundai Santa Fe (#23889)
* 2022 Hyundai Santa Fe fingerprint

* Update selfdrive/car/hyundai/values.py

Co-authored-by: Chris Frank <chrsfr@users.noreply.github.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-03-07 13:13:00 +01:00
Willem Melching 492398826f
modeld: sync based on frame timestamp (#23901)
* sync based on frame ts

* log extra frame id

* ints only

* update ref

* no rounding errors
2022-03-07 10:46:15 +01:00
Willem Melching 37a8b09cad
lower model FCW + stock longitudinal threshold to -1.25m/s^2 (#23915) 2022-03-07 10:42:07 +01:00
Jason Young 7fc1b7dc0a
VW MQB: Add FW for 2022 Volkswagen Tiguan (#23913) 2022-03-06 10:51:26 -08:00
Jason Young ab8f3c4c12
VW MQB: Add FW for 2020 Volkswagen Jetta (#23908) 2022-03-05 15:40:48 -08:00
Jason Young 3d36c1c702
VW MQB: Add FW for 2018 Å koda Octavia (#23909) 2022-03-05 15:40:37 -08:00
Jason Wen 2928507f44
Remove KIA_NIRO_HEV_2021 from STEER_MAX = 255 blacklist (#23906) 2022-03-03 21:10:03 -08:00
Shane Smiskol 274885fc4d
controlsd: fix vCruise jumping on pcmCruise cars (#23388)
* clean up v_cruise_kph

fix

fix

* Revert "clean up v_cruise_kph"

This reverts commit 211b5c3dbe073414ef5c39b19d6d2c6e8de2cf0b.

* always update vCruise and don't init if pcmCruise

* revert change

* update refs
2022-03-03 05:23:14 -08:00
Shane Smiskol 7254db3906
LongControl: fix control state oscillation (#23333)
* check if plan is to accelerate or not

* remove comment

* needed to see it

needed to see it

* test logic with Toyota TSS2

* hackily log conditions

* Revert "hackily log conditions"

This reverts commit 7a6b5691e2b982c7a1e3911d980fb7530647affd.

Revert "test logic with Toyota TSS2"

This reverts commit e583d6e3caaa5f5b896165cd7949dfc1caabfd9a.

order

* revert

* fix
2022-03-03 03:27:24 -08:00
Jonathan Frey ab371f888a
Longitudinal MPC set qp tolerance to 1e-3 (#23899)
* initialize solverExecutionTime longitudinal_planner

* test_onroad: improve timing evaluation

* longitudinal MPC: set qp_tol to 1e-3

* update ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-03-02 21:38:40 -08:00
Jonathan Frey 1801baba68
remove trivial terminal constraint and associated CasADi generated functions (#23898)
* remove trivial terminal constraint and associated CasADi generated functions

* Update refs

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-03-02 20:53:21 -08:00
George Hotz 8d6f49aecf
model: mse err from 0.02-> 0.000056 (#23891)
* mse err from 0.028070712 -> 5.8073703e-05

* build with weights fixup

* need thneed lib also

* don't break for binaries

* static analysis says i need init

* check the bias

* load_dlc_weights

* nicer scons

* tested scons

* fix static

* pylint issue

* new ref

* a few more asserts

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-03-02 20:52:17 -08:00
Shane Smiskol 77fd64ee30
Move 2020 Lexus NX 300 fw fingerprints to TSS2 (#23893)
* Revert "Toyota: add Leuxs NX fingerprint (#23808)"

This reverts commit 4f999b44c6.

* Add engine and fwRadar fw
2022-03-02 13:31:51 -08:00
Adeeb Shihadeh 52cd58068e
thermald: use latest modem temps (#23878)
* thermald: use latest modem temps

* move that
2022-03-02 11:01:06 -08:00
Robbe Derks 8c971f24e3
Fan controller cleanup + testing (#23886)
* clean up fan controllers in preparation for testing

* add fan controller to release

* add some unit tests around the fan controller

* subclass ABC
2022-03-02 17:35:58 +01:00
Willem Melching f4c822e8c6
locationd: fix writing LastGPSPosition interval (#23895) 2022-03-02 15:16:19 +01:00
Willem Melching aabd9a0dff
camerad: log debayer + yuv processing time (#23894)
* camerad: log debayer + yuv processing time

* bump cereal
2022-03-02 13:56:00 +01:00
Vivek Aithal 7e6903b58f
locationd, paramsd: Check conditions before updating kalman filters (#23789)
* update filters only when all messages are alivbe and valid

* update message valid and fix unit test

* update refs

* move check outside loop

* modify fake message fn in test

* deprecate inputsOK and resolve PR comments

* avoid double looped list comprehension

* follow import conventions

* modify paramsd valid to only be invalid in case of commIssue

* update refs
2022-03-02 01:01:29 -08:00
Adeeb Shihadeh 87849f93b1
better steer fault names (#23890)
* better steer fault names

* bump cereal
2022-03-01 22:53:55 -08:00
George Hotz 825c924c1c
minor cleanups, fix non binary compile (#23882)
Co-authored-by: Comma Device <device@comma.ai>
2022-03-01 16:05:44 -08:00
Shane Smiskol 8eab496ce3
Update Santa Fe 2019 route (#23888)
* new santa fe route, mid-drive to parking lot

* bump
2022-03-01 13:47:53 -08:00
Jason Wen 47aa3f60ba
Hyundai: Add FW for 2022 Ioniq Plug-in Hybrid (#23862)
* Add car port: Hyundai Ioniq Plug-in Hybrid 2022

* minSteerSpeed is 0

* Remove from crc8 checksum

* Add test route

* Revert "Add test route"

This reverts commit a76ddca888.

* Revert "Remove from crc8 checksum"

This reverts commit eb2be0a20c.

* Revert "minSteerSpeed is 0"

This reverts commit 3f40eba611.

* Revert "Add car port: Hyundai Ioniq Plug-in Hybrid 2022"

This reverts commit f4084989d0.

* Hyundai: Add FW for 2022 Ioniq Plug-in Hybrid

* Remove IONIQ_PHEV from STEER_MAX = 255

* Add additional FW version
2022-02-28 18:39:36 -08:00
Jason Young 0502486c16
VW MQB: Add FW for 2017 Audi S3 (#23881) 2022-02-28 14:27:22 -08:00
Adeeb Shihadeh 8a19d9892e
modeld: remove support for small model (#23803)
* modeld: remove support for small model

* use extra
2022-02-28 10:32:39 -08:00
Comma Device 83159a09bf THNEED_DEBUG env var support 2022-02-28 09:30:43 -08:00
Jason Wen 6a072886e9
HKG: Add FW for 2022 Kia Niro HEV (#23863)
* HKG: Add FW for 2022 Kia Niro HEV

* Expand model year
2022-02-28 11:48:01 +01:00
sintman 4f999b44c6
Toyota: add Leuxs NX fingerprint (#23808) 2022-02-27 22:01:55 -08:00
teknonut bfa854f31c
HKG: Add FW for 2021 Hyundai Santa Fe (#23858) 2022-02-27 22:01:01 -08:00
seven121-ym 9a663214b9
Subaru: add FW for 2019 Subaru Impreza (#23873)
* Update values.py

* Update selfdrive/car/subaru/values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-27 21:57:42 -08:00
Adeeb Shihadeh 45a5297e77 Hyundai: add FW versions for 2022 Elantra 2022-02-27 11:06:23 -08:00
Robbe Derks f539d9c0bc
fix kF value for thermal PI controller (#23871) 2022-02-27 19:51:59 +01:00
Shane Smiskol a1875ac6f0
Toyota: fix learning bad offsets for some models (#23810)
* Update carstate.py

* comments

* use initializing

* bump opendbc

* bool

* check both

* bump opendbc

* and on TSS-P the initializing bit isn't set
2022-02-26 00:54:35 -08:00
Jonathan Frey d09dffb7cd
Cython acados and minor (#23835)
* acados_ocp_solver_pyx.pyx: implement get_stats for timings and ints

* long_mpc: use acados timers

* acados_ocp_solver_pyx.pyx: fix dynamics_get

* acados_ocp_solver_pyx.pyx: get statistics

* use acados_ocp_solver_pyx.pyx from commaai/cython2 branch

* acados_ocp_solver_pyx.pyx: implement store_iterate

* acados_ocp_solver_pyx.pyx: implement get_residuals

* acados_ocp_solver_pyx.pyx: fix set() for empty fields

* acados_ocp_solver_pyx.pyx: load_iterate

* cython acados: add print_statistics

* test_following_distance: fix typo

* test_longitudinal: unique names for test maneuvers

* longitudinal MPC: comments for evaluation

* longitudinal MPC: add comments to eval acados residuals

* long_mpc: use qp_solver_cond_N = 1

* long MPC: comments, simplify set_cur_state

* update acados version in build script

* longitudinal mpc: weigh a_change in 1 place only

* update ref

* Update ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-02-25 14:16:44 -08:00
Willem Melching ca8d4e417e
MacOS: ensure 1:1 rendering on HiDPI screens (#23860) 2022-02-25 14:36:27 +01:00
Adeeb Shihadeh 71cf938c51
Subaru: add Ascent FW values (#23848) 2022-02-23 17:34:39 -08:00
martinl 160a8cfd58
Remove unused MPC_COST_LONG class (#23843) 2022-02-23 17:26:05 -08:00
Ross Fisher 49c42c3cd4
Toyota: remove outdated comment (#23844) 2022-02-23 17:03:24 -08:00
Adeeb Shihadeh 04b2545ec0
Subaru: remove Impreza CAN fingerprints (#23841)
* Subaru: remove Impreza CAN fingerprints

* fix process replay

* update refs
2022-02-23 15:44:17 -08:00
Adeeb Shihadeh 767bc1aa3b boardd: handle missing pandas 2022-02-23 13:35:56 -08:00
Robbe Derks f4d91f71a5
this seems to about what my car converges to (#23836) 2022-02-23 16:03:31 +01:00
Willem Melching a03685c3f9
Fix watch3 on mac (#23834) 2022-02-23 14:31:28 +01:00
Willem Melching dc7de79dc9
replay: use VideoToolbox HW decoder on Mac (#23832)
* replay: support VideoToolbox HW decoding

* rename flag

* remove debug assert
2022-02-23 13:52:50 +01:00
Willem Melching df88280e0f
replay: use QCoreApplication (#23831) 2022-02-23 13:34:31 +01:00
Adam Wallner 52266b9cd1
Added (Ecu.eps) fingerprint for Hyundai Ioniq EV 2017 (#23823) 2022-02-23 11:58:14 +01:00
Adeeb Shihadeh c483a9724d
Honda: revert to button enable on Nidec (#23828)
* Honda: revert to button enable on Nidec

* fix test

* bump panda
2022-02-22 22:36:21 -08:00
Adeeb Shihadeh 3243d1a81e
move lock clearing to uploader (#23826)
* move lock clearing to uploader

* test case
2022-02-22 22:30:11 -08:00
Greg Hogan de178ea79c script to clear DTCs 2022-02-22 16:15:39 -08:00
Adeeb Shihadeh 0965155a5b
Toyota: fix flaky EV detection (#23825) 2022-02-22 16:15:09 -08:00
Adeeb Shihadeh c98d9791f0 adjust comma two model timing thresholds after bigmodel 2022-02-22 13:16:23 -08:00
Willem Melching 2f00271ce6
omx encoder: move writing into thread (#23771)
* omx encoder: move writing to separate thread

* fix include

* pop

* log buffers sizes

* split copy and write
2022-02-22 13:02:50 +01:00
Robbe Derks a6214ff3b1
Fix unmetered upload over cell (fix #23811) (#23820) 2022-02-22 13:01:53 +01:00
martinl 412e43206e
Subaru: add FW for Impreza Limited UDM 2017 (#23802)
* FPv2: Add Subaru Impreza Limited USM 2017

* test_fw_query_on_routes.py: add subaru support

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-22 12:17:48 +01:00
Caleb Stultz 989d072025
HKG: Kia Sorento FPv2 (#23815)
* Replace Kia Sorento FPv1 with FPv2

* keep old fingerprint

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-22 12:14:34 +01:00
Greg Hogan 35fe2605cf
hyundai: custom fw version for sonata eps (#23816)
* hyundai: custom fw version for sonata eps

* another comment
2022-02-22 12:02:35 +01:00
jdtram 6f766cbb10
2022 Hyundai Elantra firmware versions (#23818)
Added 2022 Hyundai Elantra fwdCamera, transmission, and engine fingerprints.
2022-02-22 11:57:54 +01:00
HaraldSchafer 48154703a7
Fix tici bigmodel (#23817)
* Fix bigmodel on tici: cam intrinsics arent static

* Give TICI route own name for import

* Make function useable in offline test

* typo

* change tici ecam focal to trained focal

* No shadow variable

* Fixed ref

* Force update this time

* Update model replay ref commit
2022-02-21 19:57:04 -08:00
Adeeb Shihadeh 768bea48d0 cabana for your terminal 2022-02-21 19:42:46 -08:00
Comma Device 2b652605a0 thneed: a few asserts in the optimizer for cases it will fail 2022-02-21 12:08:52 -08:00
Willem Melching 724bab8ef3
Update raw_logger/framereader to new new ffmpeg api (#23799)
* Update raw_logger/framereader to new new ffmpeg api

* Can be removed now

* Handled by avcodec_free_context

* handle EAGAIN and clean up
2022-02-21 16:39:32 +01:00
Willem Melching ccdf069c8c onroad_test: increase camerad cpu usage after debayer changes 2022-02-21 16:18:01 +01:00
Willem Melching 428d412c1f
longitudinal planner: disable change cost when stopped. not engaged or gas pressed (#23639)
* disable change cost completely on standstill and gas press

* cleanup

* set accel to zero

* clean up logic around standstill

* update ref
2022-02-21 16:14:41 +01:00
Robbe Derks 5f64f1c089
Param to allow upload over cellular (#23811)
* param to allow upload over cellular

* brackets to be consistent

* move outside loop

* fix tests

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-02-21 12:17:47 +01:00
ClockeNessMnstr f0b3593682
cleanup import chaining of T_IDXS (#23806) 2022-02-20 17:03:01 -08:00
George Hotz 2c7542d34e
Refactor convolutions (#23807)
* one conv with defines

* add conv

* building works on C3

* this is num_outputs too, process replay is so useful

Co-authored-by: Comma Device <device@comma.ai>
2022-02-20 11:55:23 -08:00
Adeeb Shihadeh 719801845b
boardd: connect to all pandas if none specified (#23805) 2022-02-19 20:21:05 -08:00
Adeeb Shihadeh 12cd852fc0 paramsd cpu usage has been increasing 2022-02-19 17:10:29 -08:00
Willem Melching 85efde269d
bigmodel (#23684)
* Added wide cam vipc client and bigmodel transform logic

* Added wide_frame to ModelState, should still work normally

* Refactored image input into addImage method, should still work normally

* Updated thneed/compile.cc

* Bigmodel, untested: 44f83118-b375-4d4c-ae12-2017124f0cf4/200

* Have to initialize extra buffer in SNPEModel

* Default paramater value in the wrong place I think

* Move USE_EXTRA to SConscript

* New model: 6c34d59a-acc3-4877-84bd-904c10745ba6/250

* move use extra check to runtime, not on C2

* this is always true

* more C2 checks

* log if frames are out of sync

* more logging on no frame

* store in pointer

* print sof

* add sync logic

* log based on sof difference as well

* keep both models

* less assumptions

* define above thneed

* typo

* simplify

* no need for second client is main is already wide

* more comments update

* no optional reference

* more logging to debug lags

* add to release files

* both defines

* New model: 6831a77f-2574-4bfb-8077-79b0972a2771/950

* Path offset no longer relevant

* Remove duplicate execute

* Moved bigmodel back to big_supercombo.dlc

* add wide vipc stream

* Tici must be tici

* Needs state too

* add wide cam support to model replay

* handle syncing better

* ugh, c2

* print that

* handle ecam lag

* skip first one

* so close

* update refs

Co-authored-by: mitchellgoffpc <mitchellgoffpc@gmail.com>
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2022-02-19 16:06:31 -08:00
Jason Wen 9a046e2ef3
HKG: Add FW for 2019 Veloster (#23756)
* HKG: Add FW for 2019 Veloster

* Add esp FW
2022-02-19 13:57:07 -08:00
Erich Moraga b9f0991df4
Add missing CAMRYH_TSS2 fwdCamera f/w (#23796)
`@Ty.ler#0303`  2022 Toyota Camry SE Hybrid  DongleID/route 9477a77ffc4e8bd4|2022-02-18--15-40-25
2022-02-19 13:53:53 -08:00
George Hotz 51767c037b
camerad: use open_v4l_by_name_and_index on c2 also (#23794)
* use open_v4l_by_name_and_index on c2 also

* remove open_v4l_by_name_and_index from qcom2
2022-02-19 13:31:11 -08:00
George Hotz 92e9823cc0
camerad: fast debayer on c2 cameras (#23795)
* fast debayer on c2 dcam

* add casts

* 128 local worksize on HDR debayer, 8 ms -> 3.5 ms

* width instead of saving rgb_width

Co-authored-by: Comma Device <device@comma.ai>
2022-02-18 20:15:20 -08:00