* disables reset calib
* works for all buttons
* naming convention + final works on PC
* stylesheets + works on manager.py
* fixing stylesheet
* add that backg
* no reviewing while onroad
* better disabled hint
* little cleanup
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d63dab950a
"openpilot requires the device to be mounted within 4° left or right and within 5° up or down. openpilot is continuously calibrating, resetting is rarely required.",[=](){
"openpilot requires the device to be mounted within 4° left or right and within 5° up or down. openpilot is continuously calibrating, resetting is rarely required.",
[=](){
if(ConfirmationDialog::confirm("Are you sure you want to reset calibration?")){
if(ConfirmationDialog::confirm("Are you sure you want to reset calibration?")){
Params().delete_db_value("CalibrationParams");
Params().delete_db_value("CalibrationParams");
}
}
}));
}));
device_layout->addWidget(horizontal_line());
offroad_btns.append(newButtonControl("Review Training Guide","REVIEW",
"Review the rules, features, and limitations of openpilot",[=](){
device_layout->addWidget(newButtonControl("Review Training Guide","REVIEW",
"Review the rules, features, and limitations of openpilot",
[=](){
if(ConfirmationDialog::confirm("Are you sure you want to review the training guide?")){
if(ConfirmationDialog::confirm("Are you sure you want to review the training guide?")){