Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve VM dynamic sol accuracy #391

Merged
merged 2 commits into from
Oct 30, 2018
Merged

Improve VM dynamic sol accuracy #391

merged 2 commits into from
Oct 30, 2018

Conversation

dek3rr
Copy link

@dek3rr dek3rr commented Oct 9, 2018

Replaces inv() with solve() to provide an exact solution (not a perceivable difference in this case but is also slightly faster)

Replaces identity() with eye(). (Identity calls eye internally!)

@pd0wm pd0wm merged commit 00429e6 into commaai:devel Oct 30, 2018
klaus385 pushed a commit to klaus385/openpilot that referenced this pull request Dec 31, 2018
* use solve and eye func

* remove uneeded import from vehicle model
@dek3rr dek3rr deleted the vehicle_model branch June 11, 2019 01:18
pd0wm pushed a commit that referenced this pull request Dec 14, 2019
a648cca Add os import
042562d Extracted wifi connect from test helpers
ac0fd5d query fw versions example - use extended diagnostic session
4e9d788 Remove not-needed cadillac-init
f0a5d15 typo
c093286 Add bootkick after re-enabling phone power (#401)
eadb0db security upgrades (#397)
7c13bec Command to get signature (#399)
dad439a static assert on size of health packet (#398)
da9da46 Fix VERSION
df4159c Revert "Revert "Register readback on most modules. Still need to convert the other ones (#396)""
56ec215 Revert "Register readback on most modules. Still need to convert the other ones (#396)"
893e486 Register readback on most modules. Still need to convert the other ones (#396)
6bbae7b VW safety: allow cancel spam on both buses to be compatible with camera and gateway integration
d5f7a28 bump panda
1bcc351 ignition_can: set it to False after 2s of not seeing CAN msgs
96137f1 VW can based ignition not needed. it has ignition line at camera as well.
1b004a1 Same flake8 version as the one in openpilot
e82ba5f Same pylint version as the one in openpilot
656f99b Interrupt refactor (NVIC_SM_1: #334) and Fault handling (#377) (PR #373)
000282e Fix can_logger.py to run correctly on python3 (#392)
7f9b4a5 Fix USB device enumeration on Windows 8.1 and Windows 10 (#393)
dec565c Update Misra test coverage, which now includes rule 2.7
fb6bc3b Fix Misra
878dd00 solve race condition is relay_malfunction right after changing the relay status by adding a counter
2d4cb05 add a safety mode counter
a6797a21 Implement USB power mode on uno
670f90c Merge branch 'master' of github.com:commaai/panda
ca39a5d Added faults integer to health packet
e1c34a1 Panda Jungle testing (#394)
2a093a3 Added heartbeat to echo test
2246435 Fixed health struct size. We should really get an automated test for this
f458d67 Add uptime counter to the health packet (#391)
1662481 enable CAN transcievers outside the set_safety_mode function, which is not related
a7c9874 bump panda ver
1192d93 Power saving refactor (#389)
d58d08f Fix Misra 17.8: can't mod function params
bc685ac Minor indent
a54b86c Failure of set_safety_mode falls back to SILENT. Failure to set silent results in hanging
597436d NOOUTPUT safety mode is now SILENT. NOOUTPUT still exists but keeps C… (#388)
d229f8d ESP forced off in EON build. this prevents ESP to be turned on when e… (#387)
8a044b3 forgot Hyundai: now also using make_msg
4f9c879 remove abunch of lines from safety regression tests by using common make_msg function
fb81414 mispelled word
57f5ef8 Fix misra: addr can't be more than 29 bits anyway
68ff501 typo
d5c772b Fixe Toyota message white-list
48197a9 Better masking for ELM mode
b8fe78c VW is also tested for safety replay
212d336 Safety Chrysler: Added cancel spam button check
d44b562 fix print in example
02d579a functional addr handling
6249a18 tx_hook shall have a white-list of messages (#381)
8138fc1 uds: handle function addrs and fw version query example
6626a54 Fixed python health api
b9b79e8 uds zero second timeout
e0de1a4 define ALLOW_DEBUG in safety tests
86dec4b Safety modes that violate ISO26262 requirements are not compiled in RELEASE build
e74ed93 safety tests a bit more simplified
2027765 relay malfunction test centralized
8af1a01 clean up safety tests
e8f7a3b upd panda
cfcce8f WIP: Relay malfunction (#384)
69d9d61 No tabs in mazda safety
a86418c insignificant changes
f239b99 single addr was better
d063a18 Hyundai safety: re-enable button spam safety check
4d1edc0 skip tx_hook if a message is forwarded (#379)
df2ff04 bump version
168461d added fault state to health packet
b3e1a13 uds: better debug prints
68c39fb uds: no need for threads if you always drain rx
91b7c5b bump Panda Ver
26cb4dc Fixed pylint error
32725cc Fixed misra compliance
e33b4be Added echo script
312ba62 minor comment cleanupo
e90897a Fix board detection on white
0e72c18 always stop executing if safety mode fails to be set (suggested by jyoung8607)
e8d7ed1 Rename function name to not confuse safety_set_mode and set_safety_mode
ff86db6 improve uds message processing
512ab3f except Exception
37ce507 py3 all
bac4d85 dos and python3
501db8d uds drain before send and use has_obd()
f2cbec1 Added has_obd() to python library
48e5b18 Add SDK downloading to the build step (#314)
e0762c2 Add Python & USB API for controlling phone power (#313)
ba9fb69 New health packet struct also in the python libs

git-subtree-dir: panda
git-subtree-split: a648cca
dragonpilot pushed a commit to dragonpilot-community/dragonpilot that referenced this pull request Apr 7, 2020
* use solve and eye func

* remove uneeded import from vehicle model
Vaggysag pushed a commit to Vaggysag/openpilot that referenced this pull request Apr 21, 2020
* Added uptime counter to the health packet

* fix tests by setting power save on on EON build
krkeegan pushed a commit to krkeegan/openpilot that referenced this pull request Jan 9, 2023
This is a squash commit of 7 commits.

soundd: change system sound mixer volume (commaai#26633)

* test changing sound volume

* create system/hardware/pc/hardware.h

* soundd: use Hardware::set_volume

* implement Hardware::set_volume using pactl

* Revert "test changing sound volume"

This reverts commit 4bbd870.

* don't run command in background

* pactl: use default sink

micd: scale sound volume with ambient noise level (commaai#26399)

* test changing sound volume

* test changing sound volume

* create system/hardware/pc/hardware.h

* implement Hardware::set_volume using pactl

* soundd: use Hardware::set_volume

* add sounddevice dependency

* sounddevice example

* simple micd

* cleanup

* remove this

* fix process config

* add to release files

* hardware: get sound input device

* no more offroad

* debug

* calculate volume from all measurements since last update

* use microphone noise level to update sound volume

* fix scale

* mute microphone during alerts

* log raw noise level

* hardware: reduce tici min volume

* improve scale

* add package

* clear measurements on muted

* change default to min volume and respond quicker

* fixes

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* logarithmic scaling

* fix

* respond quicker

* fixes

* tweak scaling

* specify default device

* Revert "hardware: get sound input device"

This reverts commit 50f594f.

* tuning

* forgot to update submaster

* tuning

* don't mute microphone, and clip measurement

* remove submaster

* fixes

* tuning

* implement Hardware::set_volume using pactl

* Revert "test changing sound volume"

This reverts commit 4bbd870.

* draft

* draft

* calculate sound pressure level in dB

* fix setting

* faster filter

* start at initial value

* don't run command in background

* pactl: use default sink

* use sound pressure db

* tuning

* bump up max volume threshold

* update filter slower

* fix divide by zero

* bump cereal

Co-authored-by: Shane Smiskol <shane@smiskol.com>

micd: don't update filtered sound level if playing sound (commaai#26652)

* add is_sound_playing to hardware.py

* micd: don't update filtered sound level if playing sound

micd: apply A-weighting to the sound pressure level (commaai#26668)

* record

* record

* draft

* some clean up

* some clean up

* wishful tuning

* log pressure level (db) for debugging

* fix

* tuning

* ignore complex to real warning

* remove this

* Update selfdrive/ui/soundd/sound.cc

* Update system/micd.py

* remove warning supp

* bump cereal to master

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

micd: revert check playing sound (high cpu usage) (commaai#26672)

* don't use hardware

* check micd proc

* use pactl package

* cleanup

* Revert "cleanup"

This reverts commit baf9887.

* Revert "use pactl package"

This reverts commit 0c1f3a4.

* Revert "micd: don't update filtered sound level if playing sound (commaai#26652)"

This reverts commit 86cd919.

* Revert "check micd proc"

This reverts commit 9ebbe2a.

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

Micd: update sound levels in callback (commaai#26674)

* update once reached 4096

* update once reached 4096

* reduce

* debug & cmt

* fix

* fifo again

* fix

* clean that up

* update filter on demand

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

Merge in Cereal Changes from Upstream

Add Fields for Ambient Noise Level Detection

This is a squash commit of 3 commits.

add microphone (commaai#382)

* add microphone socket

* increase freq

* add raw noise level

* rename to ambient

* switch

Micd fields (commaai#391)

* add new field

* uncalib

Co-authored-by: Shane Smiskol <shane@smiskol.com>

Micd: add A-weighted sound level fields (commaai#392)

* new fields

* add temp field

* Revert "add temp field"

This reverts commit 54b597470f1da13246599502d91dd4e18f4aa11f.

* move

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants