Higher bitrate uploads

Added toggle to increase the bitrate for uploads to comma connect
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent 7437d97c2e
commit 7ef99716cc
4 changed files with 5 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ FrogPilotControlsPanel::FrogPilotControlsPanel(SettingsWindow *parent) : FrogPil
{"QOLControls", "Quality of Life", "Miscellaneous quality of life changes to improve your overall openpilot experience.", "../frogpilot/assets/toggle_icons/quality_of_life.png"},
{"DisableOnroadUploads", "Disable Onroad Uploads", "Prevent large data uploads when onroad.", ""},
{"HigherBitrate", "Higher Bitrate Recording", "Increases the quality of the footage uploaded to comma connect.", ""},
};
for (const auto &[param, title, desc, icon] : controlToggles) {
@@ -254,7 +255,7 @@ FrogPilotControlsPanel::FrogPilotControlsPanel(SettingsWindow *parent) : FrogPil
}
});
std::set<std::string> rebootKeys = {"AlwaysOnLateral"};
std::set<std::string> rebootKeys = {"AlwaysOnLateral", "HigherBitrate"};
for (const std::string &key : rebootKeys) {
QObject::connect(toggles[key], &ToggleControl::toggleFlipped, [this, key]() {
if (started) {