Skip to content

Stock Additions refactor#109

Merged
sshane merged 192 commits intostock_additionsfrom
dynamic-follow-refactor
May 22, 2020
Merged

Stock Additions refactor#109
sshane merged 192 commits intostock_additionsfrom
dynamic-follow-refactor

Conversation

@sshane
Copy link
Copy Markdown
Owner

@sshane sshane commented May 16, 2020

General fork changes:

  • Various opParams speed ups. writing sped up by ~35.9%
  • Increase read frequency for live parameters
  • opEdit now highlights last param that was explored
  • Disable Dynamic Gas for TSS2 cars without pedal to fix slow acceleration

Dynamic follow changes:

  • traffic profile is now an average of 7.371 feet closer from 18 mph to 90 mph and is now allowed to get slightly closer if the lead is accelerating
  • Includes a new experimental Dynamic Follow modification that helps the car coast when the lead is decelerating quicker than you are
  • Use Auto-Dynamic follow model profile slightly quicker
  • More reliably show dynamic follow alert on start up
  • Decrease positive relative velocity mod by 4% to compliment new relative velocity over time mod. Increase negative relative velocity mod by 5% to 27.5% to get closer when lead speeds up
  • Slightly increase lead acceleration mod to get closer when lead is accelerating
  • Tune new relative velocity over time mod, for positive mods ran this equation on it: (y_ * 0.95) - 0.008

@sshane sshane merged commit 73306b9 into stock_additions May 22, 2020
@sshane sshane deleted the dynamic-follow-refactor branch May 25, 2020 00:38
Aragon7777 pushed a commit to Aragon7777/openpilot that referenced this pull request Aug 9, 2021
allow something like "PandaFirmware" to be processed correctly.
According to capnp spec, Text could only be an UTF-8 string,
PandaFirmware is evidently a pure binary (as decodec by the web ui):

        ( key = "PandaFirmware",
          value = "\x11\x01[\x16|GSe\xd5\x1a+\x94\xff\\f|" ),

This is causing logreader.py to fail processing rlog:

  root@localhost:/data/openpilot$ python tools/lib/logreader.py /tmp/xxx_2021-01-04--21-40-41--0--rlog
  Traceback (most recent call last):
    File "tools/lib/logreader.py", line 147, in <module>
      print(msg)
    File "capnp/lib/capnp.pyx", line 1091, in capnp.lib.capnp._DynamicStructReader.str
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 30118: invalid continuation byte

Not only that, the binary blob also gets truncated at '\0'. The real value
is as follows:

        ( key = "PandaFirmware",
          value = (
            bin = "\021\001[\026|GSe\325\032+\224\377\\f|\000\241\321\366j\360\247\354E?:\274\205\301\035\241\241T\370X\224\031\367P\257\350*eY\223rt\246\204=\223\301u\207\277\027xE\tn\365?J\234$\032\375\226\300a\215MB\326\342 }\r\366]5\250\236\006\312\000\025\353>Y\v+U\340C\321\017M\231\0307\220\236\303\005\327\'gJ\302Kv\270V\301F8\246\030\206[\344\2239T\003\275" ) ),
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.

1 participant