diff --git a/selfdrive/manager/manager.py b/selfdrive/manager/manager.py old mode 100755 new mode 100644 index c0fb351..0ee831b --- a/selfdrive/manager/manager.py +++ b/selfdrive/manager/manager.py @@ -52,13 +52,246 @@ def manager_init(frogpilot_functions) -> None: frogpilot_functions.convert_params(params, params_storage) default_params: list[tuple[str, str | bytes]] = [ + ("CarParamsPersistent", ""), ("CompletedTrainingVersion", "0"), ("DisengageOnAccelerator", "0"), + ("ExperimentalLongitudinalEnabled", "0"), + ("GithubSshKeys", ""), + ("GithubUsername", ""), + ("GsmApn", ""), ("GsmMetered", "1"), + ("GsmRoaming", "1"), ("HasAcceptedTerms", "0"), + ("IsLdwEnabled", "0"), + ("IsMetric", "0"), ("LanguageSetting", "main_en"), + ("NavSettingLeftSide", "0"), + ("NavSettingTime24h", "0"), ("OpenpilotEnabledToggle", "1"), + ("RecordFront", "0"), + ("SshEnabled", "0"), + ("UpdaterAvailableBranches", "FrogPilot,FrogPilot-Staging"), ("LongitudinalPersonality", str(log.LongitudinalPersonality.standard)), + + # Default FrogPilot parameters + ("AccelerationPath", "1"), + ("AccelerationProfile", "2"), + ("AdjacentPath", "0"), + ("AdjacentPathMetrics", "0"), + ("AggressiveAcceleration", "1"), + ("AggressiveAccelerationExperimental", "0"), + ("AggressiveFollow", "1.25"), + ("AggressiveJerkAcceleration", "50"), + ("AggressiveJerkSpeed", "50"), + ("AggressivePersonalityProfile", "1"), + ("AlertVolumeControl", "0"), + ("AlwaysOnLateral", "1"), + ("AlwaysOnLateralMain", "1"), + ("AMapKey1", ""), + ("AMapKey2", ""), + ("AutomaticUpdates", "1"), + ("BlindSpotMetrics", "0"), + ("BlindSpotPath", "1"), + ("BorderMetrics", "1"), + ("CameraView", "2"), + ("CarMake", ""), + ("CarModel", ""), + ("CECurves", "1"), + ("CENavigation", "1"), + ("CENavigationIntersections", "1"), + ("CENavigationLead", "1"), + ("CENavigationTurns", "1"), + ("CESignal", "1"), + ("CESlowerLead", "1"), + ("CESpeed", "0"), + ("CESpeedLead", "0"), + ("CEStopLights", "1"), + ("CEStopLightsLead", "0"), + ("ClusterOffset", "1.015"), + ("Compass", "0"), + ("ConditionalExperimental", "1"), + ("CrosstrekTorque", "1"), + ("CurveSensitivity", "100"), + ("CustomAlerts", "1"), + ("CustomColors", "1"), + ("CustomCruise", "1"), + ("CustomCruiseLong", "5"), + ("CustomIcons", "1"), + ("CustomPaths", "1"), + ("CustomPersonalities", "1"), + ("CustomSignals", "1"), + ("CustomSounds", "1"), + ("CustomTheme", "1"), + ("CustomUI", "1"), + ("CydiaTune", "0"), + ("DecelerationProfile", "1"), + ("DeveloperUI", "0"), + ("DeviceManagement", "1"), + ("DeviceShutdown", "9"), + ("DisableMTSCSmoothing", "0"), + ("DisableOnroadUploads", "0"), + ("DisableOpenpilotLongitudinal", "0"), + ("DisableVTSCSmoothing", "0"), + ("DisengageVolume", "100"), + ("DragonPilotTune", "0"), + ("DriverCamera", "0"), + ("DrivingPersonalities", "1"), + ("DynamicPathWidth", "0"), + ("DynamicPedalsOnUI", "1"), + ("EngageVolume", "100"), + ("ExperimentalModeActivation", "1"), + ("ExperimentalModeViaDistance", "1"), + ("ExperimentalModeViaLKAS", "1"), + ("ExperimentalModeViaTap", "0"), + ("Fahrenheit", "0"), + ("ForceAutoTune", "1"), + ("ForceFingerprint", "0"), + ("ForceMPHDashboard", "0"), + ("FPSCounter", "1"), + ("FrogsGoMooTune", "1"), + ("FullMap", "0"), + ("GasRegenCmd", "1"), + ("GMapKey", ""), + ("GoatScream", "1"), + ("GreenLightAlert", "0"), + ("HideAlerts", "0"), + ("HideAOLStatusBar", "0"), + ("HideCEMStatusBar", "0"), + ("HideLeadMarker", "0"), + ("HideMapIcon", "0"), + ("HideMaxSpeed", "0"), + ("HideSpeed", "0"), + ("HideSpeedUI", "0"), + ("HideUIElements", "0"), + ("HolidayThemes", "1"), + ("IncreaseThermalLimits", "0"), + ("LaneChangeCustomizations", "1"), + ("LaneChangeTime", "0"), + ("LaneDetectionWidth", "90"), + ("LaneLinesWidth", "4"), + ("LateralMetrics", "1"), + ("LateralTune", "1"), + ("LeadDepartingAlert", "0"), + ("LeadDetectionThreshold", "35"), + ("LockDoors", "1"), + ("LongitudinalMetrics", "1"), + ("LongitudinalTune", "1"), + ("LongPitch", "1"), + ("LoudBlindspotAlert", "0"), + ("LowVoltageShutdown", "11.8"), + ("MapAcceleration", "0"), + ("MapDeceleration", "0"), + ("MapsSelected", ""), + ("MapboxPublicKey", ""), + ("MapboxSecretKey", ""), + ("MapStyle", "10"), + ("MinimumLaneChangeSpeed", "20"), + ("MTSCAggressiveness", "100"), + ("MTSCCurvatureCheck", "0"), + ("Model", DEFAULT_MODEL), + ("ModelName", DEFAULT_MODEL_NAME), + ("ModelSelector", "0"), + ("ModelUI", "1"), + ("MTSCEnabled", "1"), + ("NNFF", "1"), + ("NNFFLite", "1"), + ("NoLogging", "0"), + ("NoUploads", "0"), + ("NudgelessLaneChange", "1"), + ("NumericalTemp", "1"), + ("OfflineMode", "1"), + ("Offset1", "5"), + ("Offset2", "5"), + ("Offset3", "5"), + ("Offset4", "10"), + ("OneLaneChange", "1"), + ("OnroadDistanceButton", "0"), + ("PathEdgeWidth", "20"), + ("PathWidth", "61"), + ("PauseAOLOnBrake", "0"), + ("PauseLateralOnSignal", "0"), + ("PedalsOnUI", "1"), + ("PreferredSchedule", "0"), + ("PromptVolume", "100"), + ("PromptDistractedVolume", "100"), + ("QOLControls", "1"), + ("QOLVisuals", "1"), + ("RandomEvents", "0"), + ("RefuseVolume", "100"), + ("RelaxedFollow", "1.75"), + ("RelaxedJerkAcceleration", "100"), + ("RelaxedJerkSpeed", "100"), + ("RelaxedPersonalityProfile", "1"), + ("ReverseCruise", "0"), + ("ReverseCruiseUI", "1"), + ("RoadEdgesWidth", "2"), + ("RoadNameUI", "1"), + ("RotatingWheel", "1"), + ("ScreenBrightness", "101"), + ("ScreenBrightnessOnroad", "101"), + ("ScreenManagement", "1"), + ("ScreenRecorder", "1"), + ("ScreenTimeout", "30"), + ("ScreenTimeoutOnroad", "30"), + ("SearchInput", "0"), + ("SetSpeedLimit", "0"), + ("SetSpeedOffset", "0"), + ("ShowCPU", "1"), + ("ShowGPU", "0"), + ("ShowIP", "0"), + ("ShowMemoryUsage", "1"), + ("ShowSLCOffset", "1"), + ("ShowSLCOffsetUI", "1"), + ("ShowSteering", "1"), + ("ShowStorageLeft", "0"), + ("ShowStorageUsed", "0"), + ("Sidebar", "0"), + ("SidebarMetrics", "1"), + ("SignalMetrics", "0"), + ("SLCConfirmation", "1"), + ("SLCConfirmationLower", "1"), + ("SLCConfirmationHigher", "1"), + ("SLCFallback", "2"), + ("SLCLookaheadHigher", "5"), + ("SLCLookaheadLower", "5"), + ("SLCOverride", "1"), + ("SLCPriority1", "Dashboard"), + ("SLCPriority2", "Offline Maps"), + ("SLCPriority3", "Navigation"), + ("SmoothBraking", "1"), + ("SmoothBrakingFarLead", "0"), + ("SmoothBrakingJerk", "0"), + ("SNGHack", "1"), + ("SpeedLimitChangedAlert", "1"), + ("SpeedLimitController", "1"), + ("StandardFollow", "1.45"), + ("StandardJerkAcceleration", "100"), + ("StandardJerkSpeed", "100"), + ("StandardPersonalityProfile", "1"), + ("StandbyMode", "0"), + ("StaticPedalsOnUI", "0"), + ("SteerRatio", ""), + ("SteerRatioStock", ""), + ("StockTune", "0"), + ("StoppingDistance", "3"), + ("TacoTune", "0"), + ("ToyotaDoors", "0"), + ("TrafficFollow", "0.5"), + ("TrafficJerkAcceleration", "50"), + ("TrafficJerkSpeed", "50"), + ("TrafficPersonalityProfile", "1"), + ("TrafficMode", "0"), + ("TurnAggressiveness", "100"), + ("TurnDesires", "0"), + ("UnlimitedLength", "1"), + ("UnlockDoors", "1"), + ("UseSI", "1"), + ("UseVienna", "0"), + ("VisionTurnControl", "1"), + ("WarningSoftVolume", "100"), + ("WarningImmediateVolume", "100"), + ("WheelIcon", "3"), + ("WheelSpeed", "0") ] if not PC: default_params.append(("LastUpdateTime", datetime.datetime.utcnow().isoformat().encode('utf8')))