freedomev icon indicating copy to clipboard operation
freedomev copied to clipboard

Update speed-sensitive-volume.sh

Open neon-dev opened this issue 5 years ago • 1 comments

  • optimized sleep times - more responsive volume adjustment shouldn't increase overall car api calls by much, due to additional if clauses
  • added config value for speed steps (now 8 mph instead of 10 mph) and reduced volume increment to smoothen things out
  • added config value for minimum speed at which volume control will start
  • added speed diff condition to avoid corner cases where volume could constantly jump between two values
  • simplified value conversions and getting/setting of data values
  • fixed volume 0 didn't stay at 0
  • removed min volume config (min is one increment above volume level 0 now)
  • removed max volume config (sense of this script is to keep volume subjectively at the same level)
  • reread volume after adjusting it to accomodate for capping and rounding by mcu

neon-dev avatar Oct 22 '19 20:10 neon-dev

I just realized apps run in a chroot jail (i don't use freedomev), so the lv/sdv commands are maybe not accessible from this environment.

neon-dev avatar Oct 30 '19 10:10 neon-dev