Files
StarPilot/openpilot/cereal/services.h
T
2026-10-21 23:28:39 -05:00

106 lines
7.1 KiB
C++

/* THIS IS AN AUTOGENERATED FILE, PLEASE EDIT services.py */
#ifndef __SERVICES_H
#define __SERVICES_H
#include <map>
#include <string>
struct service { std::string name; bool should_log; float frequency; int decimation; size_t queue_size; };
static std::map<std::string, service> services = {
{ "starpilotNavigation", {"starpilotNavigation", true, 1.000000, 1, 256000}},
{ "gyroscope", {"gyroscope", true, 104.000000, 104, 256000}},
{ "accelerometer", {"accelerometer", true, 104.000000, 104, 256000}},
{ "temperatureSensor", {"temperatureSensor", true, 2.000000, 200, 256000}},
{ "deviceState", {"deviceState", true, 2.000000, 1, 256000}},
{ "chestnutState", {"chestnutState", true, 10.000000, 1, 256000}},
{ "chestnutGpuState", {"chestnutGpuState", false, 10.000000, -1, 256000}},
{ "touch", {"touch", true, 20.000000, 1, 256000}},
{ "can", {"can", true, 100.000000, 2053, 10485760}},
{ "controlsState", {"controlsState", true, 100.000000, 10, 2097152}},
{ "starpilotLateralState", {"starpilotLateralState", true, 100.000000, 10, 256000}},
{ "selfdriveState", {"selfdriveState", true, 100.000000, 10, 256000}},
{ "starpilotSelfdriveState", {"starpilotSelfdriveState", true, 100.000000, 10, 256000}},
{ "pandaStates", {"pandaStates", true, 10.000000, 1, 256000}},
{ "peripheralState", {"peripheralState", true, 2.000000, 1, 256000}},
{ "radarState", {"radarState", true, 20.000000, 5, 256000}},
{ "starpilotRadarState", {"starpilotRadarState", true, 20.000000, 5, 256000}},
{ "spotMonitorState", {"spotMonitorState", true, 0.000000, 1, 256000}},
{ "narrowRoadEncodeIdx", {"narrowRoadEncodeIdx", false, 20.000000, 1, 256000}},
{ "radarTracks", {"radarTracks", true, 20.000000, -1, 256000}},
{ "sendcan", {"sendcan", true, 100.000000, 139, 2097152}},
{ "logMessage", {"logMessage", true, 0.000000, -1, 10485760}},
{ "modelIdentity", {"modelIdentity", true, 0.200000, 1, 256000}},
{ "errorLogMessage", {"errorLogMessage", true, 0.000000, 1, 10485760}},
{ "extrinsicsCalibration", {"extrinsicsCalibration", true, 4.000000, 4, 256000}},
{ "lateralTorqueParameters", {"lateralTorqueParameters", true, 4.000000, 1, 256000}},
{ "autoSteeringLearning", {"autoSteeringLearning", true, 4.000000, 1, 256000}},
{ "starpilotSteeringTracking", {"starpilotSteeringTracking", true, 20.000000, 5, 256000}},
{ "lateralDelay", {"lateralDelay", true, 4.000000, 1, 256000}},
{ "operatingSystemLog", {"operatingSystemLog", true, 0.000000, -1, 256000}},
{ "carState", {"carState", true, 100.000000, 10, 256000}},
{ "carControl", {"carControl", true, 100.000000, 10, 256000}},
{ "carOutput", {"carOutput", true, 100.000000, 10, 256000}},
{ "longitudinalPlan", {"longitudinalPlan", true, 20.000000, 10, 256000}},
{ "starpilotLongitudinalPlan", {"starpilotLongitudinalPlan", true, 20.000000, 10, 256000}},
{ "slcState", {"slcState", true, 20.000000, 10, 256000}},
{ "customReserved6", {"customReserved6", false, 20.000000, 10, 256000}},
{ "slcAction", {"slcAction", true, 0.000000, 1, 256000}},
{ "slcCruiseEvent", {"slcCruiseEvent", true, 0.000000, 1, 256000}},
{ "slcDashboardObservation", {"slcDashboardObservation", true, 100.000000, 10, 256000}},
{ "slcVisionObservation", {"slcVisionObservation", true, 6.000000, 6, 256000}},
{ "slcCruiseCommand", {"slcCruiseCommand", true, 20.000000, 1, 256000}},
{ "aolAxisState", {"aolAxisState", true, 100.000000, 10, 256000}},
{ "aolSafetyWire", {"aolSafetyWire", true, 10.000000, 10, 256000}},
{ "aolIntentWire", {"aolIntentWire", true, 100.000000, 10, 256000}},
{ "laneChangeAssistWire", {"laneChangeAssistWire", true, 20.000000, 10, 256000}},
{ "mapdOut", {"mapdOut", true, 20.000000, 10, 256000}},
{ "mapdExtendedOut", {"mapdExtendedOut", true, 1.000000, 1, 256000}},
{ "mapdIn", {"mapdIn", true, 1.000000, 1, 256000}},
{ "lateralManeuverPlan", {"lateralManeuverPlan", true, 20.000000, -1, 256000}},
{ "driverAssistance", {"driverAssistance", true, 20.000000, 20, 256000}},
{ "procLog", {"procLog", true, 0.500000, 15, 10485760}},
{ "gpsLocationExternal", {"gpsLocationExternal", true, 10.000000, 10, 256000}},
{ "starpilotCarState", {"starpilotCarState", true, 0.000000, 1, 256000}},
{ "gpsLocation", {"gpsLocation", true, 1.000000, 1, 256000}},
{ "navInstruction", {"navInstruction", true, 1.000000, 10, 256000}},
{ "navRoute", {"navRoute", true, 0.000000, -1, 256000}},
{ "ubloxGnss", {"ubloxGnss", true, 10.000000, -1, 256000}},
{ "qcomGnss", {"qcomGnss", true, 2.000000, -1, 256000}},
{ "clocks", {"clocks", true, 0.100000, 1, 256000}},
{ "ubloxRaw", {"ubloxRaw", true, 20.000000, -1, 256000}},
{ "deviceMotion", {"deviceMotion", true, 20.000000, 4, 256000}},
{ "vehicleParameters", {"vehicleParameters", true, 20.000000, 5, 256000}},
{ "cameraOdometry", {"cameraOdometry", true, 20.000000, 10, 256000}},
{ "thumbnail", {"thumbnail", true, 0.016667, 1, 256000}},
{ "onroadEvents", {"onroadEvents", true, 1.000000, 1, 256000}},
{ "carParams", {"carParams", true, 0.020000, 1, 256000}},
{ "narrowRoadCameraState", {"narrowRoadCameraState", true, 20.000000, 20, 256000}},
{ "cabinCameraState", {"cabinCameraState", true, 20.000000, 20, 256000}},
{ "cabinEncodeIdx", {"cabinEncodeIdx", false, 20.000000, 1, 256000}},
{ "driverStateV2", {"driverStateV2", true, 20.000000, 10, 256000}},
{ "driverMonitoringState", {"driverMonitoringState", true, 20.000000, 10, 256000}},
{ "wideRoadEncodeIdx", {"wideRoadEncodeIdx", false, 20.000000, 1, 256000}},
{ "wideRoadCameraState", {"wideRoadCameraState", true, 20.000000, 20, 256000}},
{ "drivingModelData", {"drivingModelData", true, 20.000000, 10, 256000}},
{ "modelV2", {"modelV2", true, 20.000000, -1, 10485760}},
{ "managerState", {"managerState", true, 2.000000, 1, 256000}},
{ "qNarrowRoadEncodeIdx", {"qNarrowRoadEncodeIdx", false, 20.000000, -1, 256000}},
{ "userBookmark", {"userBookmark", true, 0.000000, 1, 256000}},
{ "soundPressure", {"soundPressure", true, 10.000000, 10, 256000}},
{ "rawAudioData", {"rawAudioData", false, 20.000000, -1, 256000}},
{ "bookmarkButton", {"bookmarkButton", true, 0.000000, 1, 256000}},
{ "narrowRoadEncodeData", {"narrowRoadEncodeData", false, 20.000000, -1, 10485760}},
{ "cabinEncodeData", {"cabinEncodeData", false, 20.000000, -1, 10485760}},
{ "wideRoadEncodeData", {"wideRoadEncodeData", false, 20.000000, -1, 10485760}},
{ "qNarrowRoadEncodeData", {"qNarrowRoadEncodeData", false, 20.000000, -1, 10485760}},
{ "uiDebug", {"uiDebug", true, 0.000000, 1, 256000}},
{ "testJoystick", {"testJoystick", true, 0.000000, -1, 256000}},
{ "alertDebug", {"alertDebug", true, 20.000000, 5, 256000}},
{ "livestreamWideRoadEncodeIdx", {"livestreamWideRoadEncodeIdx", false, 20.000000, -1, 256000}},
{ "livestreamNarrowRoadEncodeIdx", {"livestreamNarrowRoadEncodeIdx", false, 20.000000, -1, 256000}},
{ "livestreamCabinEncodeIdx", {"livestreamCabinEncodeIdx", false, 20.000000, -1, 256000}},
{ "livestreamWideRoadEncodeData", {"livestreamWideRoadEncodeData", false, 20.000000, -1, 2097152}},
{ "livestreamNarrowRoadEncodeData", {"livestreamNarrowRoadEncodeData", false, 20.000000, -1, 2097152}},
{ "livestreamCabinEncodeData", {"livestreamCabinEncodeData", false, 20.000000, -1, 2097152}},
};
#endif