Skip to content

Commit

Permalink
Sync: commaai/openpilot:master into `sunnypilot/sunnypilot:master-n…
Browse files Browse the repository at this point in the history
…ew` (commaai#533)

* cabana: enhance message heatmap visualization (commaai#34239)

* enhance message heatmap visualization

* TODO

* improve log_factor

* typo

* bit_flip_counts

* Openpilot webcam support improved (commaai#34215)

* control webcam with ENV vars

* WIP: actual instructions

* wording

* file no longer exists

* this is expected behavior, just untested

* more readable

* tested on fresh install

* wording tweaks

* explicit USE_WEBCAM toggle required

Co-authored-by: Adeeb Shihadeh <[email protected]>

* debug-ability improved

Co-authored-by: Adeeb Shihadeh <[email protected]>

Co-authored-by: Adeeb Shihadeh <[email protected]>

* newline removed

---------

Co-authored-by: Adeeb Shihadeh <[email protected]>

* Update metadrive wheel (commaai#34292)

* test

* new wheel

* fix IR power scaling (commaai#34293)

* fix IR power scaling

* Update system/hardware/tici/hardware.h

* replay: Update video immediately after seek when paused. (commaai#34237)

replay: Update video immediately after seeking when paused.

Otherwise, if paused then have to resume playback for the video
frame to update and show the new location.

Implemented by temporarily un-pausing replay for a single
frame time.

* cabana: add live and time-window heatmap modes for enhanced signal analysis (commaai#34296)

add live and time-window heatmap modes

* timed: diff against absolute value of timedelta (commaai#34299)

* cabana: miscellaneous bug fixes and enhancements (commaai#34297)

* toHexString

* use QToolBar

* fix incorrect groove rect

* limit CAN_MAX_DATA_BYTES

* add series type selector to chart toolbar

* dim inactive messages

* rename

* add help to chart

* cleanup

* cabana: real-time cursor and video frame sync for chart and video (commaai#34301)

* sync cursor and thumbnail between chart and video

* Revert "replay: Update video immediately after seek when paused. (commaai#34237)"

This reverts commit 3363881.

* use thumbnails while scrubing

* draw alert

* no update on resume

* draw timestamp

* cleanup

* replay:  fix various synchronization and event handling issues (commaai#34254)

fix various synchronization and event handling issues

* cabana: fix crash in live streaming mode by skipping thumbnail display (commaai#34302)

resolve crash in live streaming mode

* bump panda

* [bot] Update Python packages (commaai#34304)

Update Python packages

Co-authored-by: Vehicle Researcher <[email protected]>

* cleanup touch_replay (commaai#34305)

mathematics

* uv from brew doesn't have self update

* Skip registration on newer devices (commaai#34316)

* tici: fix cpp device type (commaai#34315)

fix cpp

* Tinygrad upstream master (commaai#34325)

Upstream master

* [bot] Update Python packages (commaai#34320)

Update Python packages

Co-authored-by: Vehicle Researcher <[email protected]>

* cabana: fix missing transmitter after undoing DBC message removal (commaai#34329)

fix missing transmitter after undoing DBC message removal

* Quick GC pass heading into 2025 (commaai#34330)

* first pass

* bye bye snpe

* [bot] Update Python packages (commaai#34334)

Update Python packages

Co-authored-by: Vehicle Researcher <[email protected]>

* Notre Dame model in tinygrad (commaai#34324)

* release model: 6f23a03f-486b-4d3e-a314-19d149644c7c/700

* old style model in tinygrad

* fix desire

* tg hack

* 20Hz

* no gas probs

* No gas here

* better indexing

---------

Co-authored-by: Yassine Yousfi <[email protected]>

---------

Co-authored-by: Dean Lee <[email protected]>
Co-authored-by: Mike Busuttil <[email protected]>
Co-authored-by: Adeeb Shihadeh <[email protected]>
Co-authored-by: Maxime Desroches <[email protected]>
Co-authored-by: Angus Gratton <[email protected]>
Co-authored-by: commaci-public <[email protected]>
Co-authored-by: Vehicle Researcher <[email protected]>
Co-authored-by: Harald Schäfer <[email protected]>
Co-authored-by: Yassine Yousfi <[email protected]>
  • Loading branch information
10 people authored Jan 7, 2025
1 parent c13f159 commit e682957
Show file tree
Hide file tree
Showing 152 changed files with 788 additions and 9,351 deletions.
15 changes: 0 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE/bugfix.md

This file was deleted.

19 changes: 0 additions & 19 deletions .github/PULL_REQUEST_TEMPLATE/car_bugfix.md

This file was deleted.

15 changes: 0 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE/car_port.md

This file was deleted.

13 changes: 0 additions & 13 deletions .github/PULL_REQUEST_TEMPLATE/fingerprint.md

This file was deleted.

15 changes: 0 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE/refactor.md

This file was deleted.

31 changes: 0 additions & 31 deletions .github/PULL_REQUEST_TEMPLATE/tuning.md

This file was deleted.

30 changes: 0 additions & 30 deletions .github/build.py

This file was deleted.

4 changes: 0 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ AddOption('--ccflags',
default='',
help='pass arbitrary flags over the command line')

AddOption('--snpe',
action='store_true',
help='use SNPE on PC')

AddOption('--external-sconscript',
action='store',
metavar='FILE',
Expand Down
49 changes: 0 additions & 49 deletions cereal/maptile.capnp

This file was deleted.

1 change: 0 additions & 1 deletion common/params.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ std::unordered_map<std::string, uint32_t> keys = {
{"GsmRoaming", PERSISTENT | BACKUP},
{"HardwareSerial", PERSISTENT},
{"HasAcceptedTerms", PERSISTENT},
{"IMEI", PERSISTENT},
{"InstallDate", PERSISTENT},
{"IsDriverViewEnabled", CLEAR_ON_MANAGER_START},
{"IsEngaged", PERSISTENT},
Expand Down
23 changes: 23 additions & 0 deletions common/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,29 @@ bool ends_with(const std::string& s, const std::string& suffix) {
strcmp(s.c_str() + (s.size() - suffix.size()), suffix.c_str()) == 0;
}

std::string strip(const std::string &str) {
auto should_trim = [](unsigned char ch) {
// trim whitespace or a null character
return std::isspace(ch) || ch == '\0';
};

size_t start = 0;
while (start < str.size() && should_trim(static_cast<unsigned char>(str[start]))) {
start++;
}

if (start == str.size()) {
return "";
}

size_t end = str.size() - 1;
while (end > 0 && should_trim(static_cast<unsigned char>(str[end]))) {
end--;
}

return str.substr(start, end - start + 1);
}

std::string check_output(const std::string& command) {
char buffer[128];
std::string result;
Expand Down
1 change: 1 addition & 0 deletions common/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ float getenv(const char* key, float default_val);
std::string hexdump(const uint8_t* in, const size_t size);
bool starts_with(const std::string &s1, const std::string &s2);
bool ends_with(const std::string &s, const std::string &suffix);
std::string strip(const std::string &str);

// ***** random helpers *****
int random_int(int min, int max);
Expand Down
Loading

0 comments on commit e682957

Please sign in to comment.