diff --git a/common/params.cc b/common/params.cc index 743ac9844..74dee7d8c 100644 --- a/common/params.cc +++ b/common/params.cc @@ -284,6 +284,7 @@ std::unordered_map keys = { {"HideLeadMarker", PERSISTENT}, {"HideSpeed", PERSISTENT}, {"HideSpeedUI", PERSISTENT}, + {"HigherBitrate", PERSISTENT}, {"IncreaseThermalLimits", PERSISTENT}, {"LaneLinesWidth", PERSISTENT}, {"LateralTune", PERSISTENT}, diff --git a/selfdrive/frogpilot/ui/qt/offroad/control_settings.cc b/selfdrive/frogpilot/ui/qt/offroad/control_settings.cc index 5a465b481..1a07b9266 100644 --- a/selfdrive/frogpilot/ui/qt/offroad/control_settings.cc +++ b/selfdrive/frogpilot/ui/qt/offroad/control_settings.cc @@ -24,6 +24,7 @@ FrogPilotControlsPanel::FrogPilotControlsPanel(SettingsWindow *parent) : FrogPil {"DeviceShutdown", tr("Device Shutdown Timer"), tr("Configure how quickly the device shuts down after going offroad."), ""}, {"NoLogging", tr("Disable Logging"), tr("Turn off all data tracking to enhance privacy or reduce thermal load."), ""}, {"NoUploads", tr("Disable Uploads"), tr("Turn off all data uploads to comma's servers."), ""}, + {"HigherBitrate", tr("Higher Bitrate Recording"), tr("Increases the quality of the footage uploaded to comma connect."), ""}, {"IncreaseThermalLimits", tr("Increase Thermal Safety Limit"), tr("Allow the device to run at a temperature above comma's recommended thermal limits."), ""}, {"LowVoltageShutdown", tr("Low Voltage Shutdown Threshold"), tr("Automatically shut the device down when your battery reaches a specific voltage level to prevent killing your battery."), ""}, {"OfflineMode", tr("Offline Mode"), tr("Allow the device to be offline indefinitely."), ""}, @@ -291,7 +292,7 @@ FrogPilotControlsPanel::FrogPilotControlsPanel(SettingsWindow *parent) : FrogPil } }); - std::set rebootKeys = {"AlwaysOnLateral", "AlwaysOnLateralMain"}; + std::set rebootKeys = {"AlwaysOnLateral", "AlwaysOnLateralMain", "HigherBitrate"}; for (const QString &key : rebootKeys) { QObject::connect(toggles[key.toStdString().c_str()], &ToggleControl::toggleFlipped, [this]() { if (started) { diff --git a/selfdrive/frogpilot/ui/qt/offroad/control_settings.h b/selfdrive/frogpilot/ui/qt/offroad/control_settings.h index 559f35ccc..72f86ee9f 100644 --- a/selfdrive/frogpilot/ui/qt/offroad/control_settings.h +++ b/selfdrive/frogpilot/ui/qt/offroad/control_settings.h @@ -33,7 +33,7 @@ private: std::set aolKeys = {"AlwaysOnLateralMain", "HideAOLStatusBar", "PauseAOLOnBrake"}; std::set conditionalExperimentalKeys = {"CECurves", "CECurvesLead", "CENavigation", "CESignal", "CESlowerLead", "CEStopLights", "HideCEMStatusBar"}; - std::set deviceManagementKeys = {"DeviceShutdown", "IncreaseThermalLimits", "LowVoltageShutdown", "NoLogging", "NoUploads", "OfflineMode"}; + std::set deviceManagementKeys = {"DeviceShutdown", "HigherBitrate", "IncreaseThermalLimits", "LowVoltageShutdown", "NoLogging", "NoUploads", "OfflineMode"}; std::set experimentalModeActivationKeys = {"ExperimentalModeViaDistance", "ExperimentalModeViaLKAS", "ExperimentalModeViaTap"}; std::set laneChangeKeys = {}; std::set lateralTuneKeys = {"ForceAutoTune"}; diff --git a/system/loggerd/loggerd.h b/system/loggerd/loggerd.h index ea288f486..54761483c 100644 --- a/system/loggerd/loggerd.h +++ b/system/loggerd/loggerd.h @@ -14,7 +14,7 @@ #include "system/loggerd/logger.h" constexpr int MAIN_FPS = 20; -const int MAIN_BITRATE = 1e7; +const int MAIN_BITRATE = Params().getBool("HigherBitrate") ? 20000000 : 1e7; const int LIVESTREAM_BITRATE = 1e6; const int QCAM_BITRATE = 256000;