add String() to packets

This commit is contained in:
saji 2023-05-22 12:16:48 -05:00
parent 43925d2a7d
commit 2b130ecc17
3 changed files with 85 additions and 85 deletions

View file

@ -1,4 +1,4 @@
// generated by gen_skylab.go at 2023-05-22 08:37:01.7251166 -0500 CDT m=+0.002980842 DO NOT EDIT!
// generated by gen_skylab.go at 2023-05-22 12:15:36.401199868 -0500 CDT m=+0.002809501 DO NOT EDIT!
package skylab
@ -965,7 +965,7 @@ func (p *BmsMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *BmsMeasurement) String() string {
return ""
return "bms_measurement"
}
@ -1195,7 +1195,7 @@ func (p *BatteryStatus) UnmarshalPacket(b []byte) error {
}
func (p *BatteryStatus) String() string {
return ""
return "battery_status"
}
@ -1313,7 +1313,7 @@ func (p *BmsKillReason) UnmarshalPacket(b []byte) error {
}
func (p *BmsKillReason) String() string {
return ""
return "bms_kill_reason"
}
@ -1358,7 +1358,7 @@ func (p *BmsModuleMinMax) UnmarshalPacket(b []byte) error {
}
func (p *BmsModuleMinMax) String() string {
return ""
return "bms_module_min_max"
}
@ -1390,7 +1390,7 @@ func (p *BmsSoc) UnmarshalPacket(b []byte) error {
}
func (p *BmsSoc) String() string {
return ""
return "bms_soc"
}
@ -1425,7 +1425,7 @@ func (p *BmsCapacity) UnmarshalPacket(b []byte) error {
}
func (p *BmsCapacity) String() string {
return ""
return "bms_capacity"
}
@ -1462,7 +1462,7 @@ func (p *BmsCurrentlimit) UnmarshalPacket(b []byte) error {
}
func (p *BmsCurrentlimit) String() string {
return ""
return "bms_currentlimit"
}
@ -1507,7 +1507,7 @@ func (p *BmsFanInfo) UnmarshalPacket(b []byte) error {
}
func (p *BmsFanInfo) String() string {
return ""
return "bms_fan_info"
}
@ -1544,7 +1544,7 @@ func (p *BmsSetMinFanSpeed) UnmarshalPacket(b []byte) error {
}
func (p *BmsSetMinFanSpeed) String() string {
return ""
return "bms_set_min_fan_speed"
}
@ -1586,7 +1586,7 @@ func (p *BmsModule) UnmarshalPacket(b []byte) error {
}
func (p *BmsModule) String() string {
return ""
return "bms_module"
}
@ -1634,7 +1634,7 @@ func (p *BmsChargerResponse) UnmarshalPacket(b []byte) error {
}
func (p *BmsChargerResponse) String() string {
return ""
return "bms_charger_response"
}
@ -1669,7 +1669,7 @@ func (p *DashboardPedalPercentages) UnmarshalPacket(b []byte) error {
}
func (p *DashboardPedalPercentages) String() string {
return ""
return "dashboard_pedal_percentages"
}
@ -1701,7 +1701,7 @@ func (p *CarState) UnmarshalPacket(b []byte) error {
}
func (p *CarState) String() string {
return ""
return "car_state"
}
@ -1736,7 +1736,7 @@ func (p *DashboardPedalFault) UnmarshalPacket(b []byte) error {
}
func (p *DashboardPedalFault) String() string {
return ""
return "dashboard_pedal_fault"
}
@ -1819,7 +1819,7 @@ func (p *DashboardSystemTimeoutTest) UnmarshalPacket(b []byte) error {
}
func (p *DashboardSystemTimeoutTest) String() string {
return ""
return "dashboard_system_timeout_test"
}
@ -1851,7 +1851,7 @@ func (p *CarSpeed) UnmarshalPacket(b []byte) error {
}
func (p *CarSpeed) String() string {
return ""
return "car_speed"
}
@ -1898,7 +1898,7 @@ func (p *FlightComputerLvBoardDisconnectCounts) UnmarshalPacket(b []byte) error
}
func (p *FlightComputerLvBoardDisconnectCounts) String() string {
return ""
return "flight_computer_lv_board_disconnect_counts"
}
@ -1945,7 +1945,7 @@ func (p *FlightComputerHvBoardDisconnectCounts) UnmarshalPacket(b []byte) error
}
func (p *FlightComputerHvBoardDisconnectCounts) String() string {
return ""
return "flight_computer_hv_board_disconnect_counts"
}
@ -2089,7 +2089,7 @@ func (p *FlightComputerInternalState) UnmarshalPacket(b []byte) error {
}
func (p *FlightComputerInternalState) String() string {
return ""
return "flight_computer_internal_state"
}
@ -2127,7 +2127,7 @@ func (p *PowerToDrive) UnmarshalPacket(b []byte) error {
}
func (p *PowerToDrive) String() string {
return ""
return "power_to_drive"
}
@ -2168,7 +2168,7 @@ func (p *ArrayPower) UnmarshalPacket(b []byte) error {
}
func (p *ArrayPower) String() string {
return ""
return "array_power"
}
@ -2236,7 +2236,7 @@ func (p *VisionTurnSignalsCommand) UnmarshalPacket(b []byte) error {
}
func (p *VisionTurnSignalsCommand) String() string {
return ""
return "vision_turn_signals_command"
}
@ -2299,7 +2299,7 @@ func (p *VisionBrakeLightsCommand) UnmarshalPacket(b []byte) error {
}
func (p *VisionBrakeLightsCommand) String() string {
return ""
return "vision_brake_lights_command"
}
@ -2370,7 +2370,7 @@ func (p *VisionHeadlightsCommand) UnmarshalPacket(b []byte) error {
}
func (p *VisionHeadlightsCommand) String() string {
return ""
return "vision_headlights_command"
}
@ -2423,7 +2423,7 @@ func (p *VisionHornCommand) UnmarshalPacket(b []byte) error {
}
func (p *VisionHornCommand) String() string {
return ""
return "vision_horn_command"
}
@ -2476,7 +2476,7 @@ func (p *VisionArrayLatchesCommand) UnmarshalPacket(b []byte) error {
}
func (p *VisionArrayLatchesCommand) String() string {
return ""
return "vision_array_latches_command"
}
@ -2534,7 +2534,7 @@ func (p *VisionRearviewCommand) UnmarshalPacket(b []byte) error {
}
func (p *VisionRearviewCommand) String() string {
return ""
return "vision_rearview_command"
}
@ -2571,7 +2571,7 @@ func (p *TrackerEnable) UnmarshalPacket(b []byte) error {
}
func (p *TrackerEnable) String() string {
return ""
return "tracker_enable"
}
@ -2604,7 +2604,7 @@ func (p *DistanceTraveled) UnmarshalPacket(b []byte) error {
}
func (p *DistanceTraveled) String() string {
return ""
return "distance_traveled"
}
@ -2714,7 +2714,7 @@ func (p *ChargerState) UnmarshalPacket(b []byte) error {
}
func (p *ChargerState) String() string {
return ""
return "charger_state"
}
@ -2762,7 +2762,7 @@ func (p *ChargerBmsRequest) UnmarshalPacket(b []byte) error {
}
func (p *ChargerBmsRequest) String() string {
return ""
return "charger_bms_request"
}
@ -2799,7 +2799,7 @@ func (p *ChargerCurrentVoltage) UnmarshalPacket(b []byte) error {
}
func (p *ChargerCurrentVoltage) String() string {
return ""
return "charger_current_voltage"
}
@ -2832,7 +2832,7 @@ func (p *ChargerPower) UnmarshalPacket(b []byte) error {
}
func (p *ChargerPower) String() string {
return ""
return "charger_power"
}
@ -2881,7 +2881,7 @@ func (p *ThunderstruckControlMessage) UnmarshalPacket(b []byte) error {
}
func (p *ThunderstruckControlMessage) String() string {
return ""
return "thunderstruck_control_message"
}
@ -3051,7 +3051,7 @@ func (p *VisionStatusFront) UnmarshalPacket(b []byte) error {
}
func (p *VisionStatusFront) String() string {
return ""
return "vision_status_front"
}
@ -3221,7 +3221,7 @@ func (p *VisionStatusRear) UnmarshalPacket(b []byte) error {
}
func (p *VisionStatusRear) String() string {
return ""
return "vision_status_rear"
}
@ -3264,7 +3264,7 @@ func (p *LightsFrontId) UnmarshalPacket(b []byte) error {
}
func (p *LightsFrontId) String() string {
return ""
return "lights_front_id"
}
@ -3307,7 +3307,7 @@ func (p *LightsBackId) UnmarshalPacket(b []byte) error {
}
func (p *LightsBackId) String() string {
return ""
return "lights_back_id"
}
@ -3350,7 +3350,7 @@ func (p *VisionId) UnmarshalPacket(b []byte) error {
}
func (p *VisionId) String() string {
return ""
return "vision_id"
}
@ -3400,7 +3400,7 @@ func (p *SteeringPressCount1) UnmarshalPacket(b []byte) error {
}
func (p *SteeringPressCount1) String() string {
return ""
return "steering_press_count_1"
}
@ -3441,7 +3441,7 @@ func (p *SteeringPressCount2) UnmarshalPacket(b []byte) error {
}
func (p *SteeringPressCount2) String() string {
return ""
return "steering_press_count_2"
}
@ -3491,7 +3491,7 @@ func (p *SteeringButtonColors1) UnmarshalPacket(b []byte) error {
}
func (p *SteeringButtonColors1) String() string {
return ""
return "steering_button_colors_1"
}
@ -3532,7 +3532,7 @@ func (p *SteeringButtonColors2) UnmarshalPacket(b []byte) error {
}
func (p *SteeringButtonColors2) String() string {
return ""
return "steering_button_colors_2"
}
@ -3564,7 +3564,7 @@ func (p *SteeringHorn) UnmarshalPacket(b []byte) error {
}
func (p *SteeringHorn) String() string {
return ""
return "steering_horn"
}
@ -3617,7 +3617,7 @@ func (p *ThunderstruckStatusMessage) UnmarshalPacket(b []byte) error {
}
func (p *ThunderstruckStatusMessage) String() string {
return ""
return "thunderstruck_status_message"
}
@ -3667,7 +3667,7 @@ func (p *TrackerData) UnmarshalPacket(b []byte) error {
}
func (p *TrackerData) String() string {
return ""
return "tracker_data"
}
@ -3702,7 +3702,7 @@ func (p *TritiumMotorDrive) UnmarshalPacket(b []byte) error {
}
func (p *TritiumMotorDrive) String() string {
return ""
return "tritium_motor_drive"
}
@ -3737,7 +3737,7 @@ func (p *TritiumMotorPower) UnmarshalPacket(b []byte) error {
}
func (p *TritiumMotorPower) String() string {
return ""
return "tritium_motor_power"
}
@ -3772,7 +3772,7 @@ func (p *TritiumReset) UnmarshalPacket(b []byte) error {
}
func (p *TritiumReset) String() string {
return ""
return "tritium_reset"
}
@ -3804,7 +3804,7 @@ func (p *BmsAhSet) UnmarshalPacket(b []byte) error {
}
func (p *BmsAhSet) String() string {
return ""
return "bms_ah_set"
}
@ -3836,7 +3836,7 @@ func (p *BmsWhSet) UnmarshalPacket(b []byte) error {
}
func (p *BmsWhSet) String() string {
return ""
return "bms_wh_set"
}
@ -3884,7 +3884,7 @@ func (p *BmsKill) UnmarshalPacket(b []byte) error {
}
func (p *BmsKill) String() string {
return ""
return "bms_kill"
}
@ -3931,7 +3931,7 @@ func (p *TelemetryRtcReset) UnmarshalPacket(b []byte) error {
}
func (p *TelemetryRtcReset) String() string {
return ""
return "telemetry_rtc_reset"
}
@ -3966,7 +3966,7 @@ func (p *WsrIdentification) UnmarshalPacket(b []byte) error {
}
func (p *WsrIdentification) String() string {
return ""
return "wsr_identification"
}
@ -4166,7 +4166,7 @@ func (p *WsrStatusInformation) UnmarshalPacket(b []byte) error {
}
func (p *WsrStatusInformation) String() string {
return ""
return "wsr_status_information"
}
@ -4203,7 +4203,7 @@ func (p *WsrBusMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *WsrBusMeasurement) String() string {
return ""
return "wsr_bus_measurement"
}
@ -4240,7 +4240,7 @@ func (p *WsrVelocity) UnmarshalPacket(b []byte) error {
}
func (p *WsrVelocity) String() string {
return ""
return "wsr_velocity"
}
@ -4277,7 +4277,7 @@ func (p *WsrPhaseCurrent) UnmarshalPacket(b []byte) error {
}
func (p *WsrPhaseCurrent) String() string {
return ""
return "wsr_phase_current"
}
@ -4314,7 +4314,7 @@ func (p *WsrMotorVoltageVector) UnmarshalPacket(b []byte) error {
}
func (p *WsrMotorVoltageVector) String() string {
return ""
return "wsr_motor_voltage_vector"
}
@ -4351,7 +4351,7 @@ func (p *WsrMotorCurrentVector) UnmarshalPacket(b []byte) error {
}
func (p *WsrMotorCurrentVector) String() string {
return ""
return "wsr_motor_current_vector"
}
@ -4388,7 +4388,7 @@ func (p *WsrMotorBackemf) UnmarshalPacket(b []byte) error {
}
func (p *WsrMotorBackemf) String() string {
return ""
return "wsr_motor_backemf"
}
@ -4425,7 +4425,7 @@ func (p *Wsr15165VoltageRail) UnmarshalPacket(b []byte) error {
}
func (p *Wsr15165VoltageRail) String() string {
return ""
return "wsr_15_165_voltage_rail"
}
@ -4462,7 +4462,7 @@ func (p *Wsr2512VoltageRail) UnmarshalPacket(b []byte) error {
}
func (p *Wsr2512VoltageRail) String() string {
return ""
return "wsr_25_12_voltage_rail"
}
@ -4499,7 +4499,7 @@ func (p *WsrHeatsinkMotorTemp) UnmarshalPacket(b []byte) error {
}
func (p *WsrHeatsinkMotorTemp) String() string {
return ""
return "wsr_heatsink_motor_temp"
}
@ -4536,7 +4536,7 @@ func (p *WsrDspBoardTemp) UnmarshalPacket(b []byte) error {
}
func (p *WsrDspBoardTemp) String() string {
return ""
return "wsr_dsp_board_temp"
}
@ -4571,7 +4571,7 @@ func (p *WsrReserved) UnmarshalPacket(b []byte) error {
}
func (p *WsrReserved) String() string {
return ""
return "wsr_reserved"
}
@ -4608,7 +4608,7 @@ func (p *WsrOdometerBusAmphoursMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *WsrOdometerBusAmphoursMeasurement) String() string {
return ""
return "wsr_odometer_bus_amphours_measurement"
}
@ -4645,7 +4645,7 @@ func (p *WsrSlipSpeedMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *WsrSlipSpeedMeasurement) String() string {
return ""
return "wsr_slip_speed_measurement"
}
@ -4680,7 +4680,7 @@ func (p *WslIdentification) UnmarshalPacket(b []byte) error {
}
func (p *WslIdentification) String() string {
return ""
return "wsl_identification"
}
@ -4880,7 +4880,7 @@ func (p *WslStatusInformation) UnmarshalPacket(b []byte) error {
}
func (p *WslStatusInformation) String() string {
return ""
return "wsl_status_information"
}
@ -4917,7 +4917,7 @@ func (p *WslBusMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *WslBusMeasurement) String() string {
return ""
return "wsl_bus_measurement"
}
@ -4954,7 +4954,7 @@ func (p *WslVelocity) UnmarshalPacket(b []byte) error {
}
func (p *WslVelocity) String() string {
return ""
return "wsl_velocity"
}
@ -4991,7 +4991,7 @@ func (p *WslPhaseCurrent) UnmarshalPacket(b []byte) error {
}
func (p *WslPhaseCurrent) String() string {
return ""
return "wsl_phase_current"
}
@ -5028,7 +5028,7 @@ func (p *WslMotorVoltageVector) UnmarshalPacket(b []byte) error {
}
func (p *WslMotorVoltageVector) String() string {
return ""
return "wsl_motor_voltage_vector"
}
@ -5065,7 +5065,7 @@ func (p *WslMotorCurrentVector) UnmarshalPacket(b []byte) error {
}
func (p *WslMotorCurrentVector) String() string {
return ""
return "wsl_motor_current_vector"
}
@ -5102,7 +5102,7 @@ func (p *WslMotorBackemf) UnmarshalPacket(b []byte) error {
}
func (p *WslMotorBackemf) String() string {
return ""
return "wsl_motor_backemf"
}
@ -5139,7 +5139,7 @@ func (p *Wsl15165VoltageRail) UnmarshalPacket(b []byte) error {
}
func (p *Wsl15165VoltageRail) String() string {
return ""
return "wsl_15_165_voltage_rail"
}
@ -5176,7 +5176,7 @@ func (p *Wsl2512VoltageRail) UnmarshalPacket(b []byte) error {
}
func (p *Wsl2512VoltageRail) String() string {
return ""
return "wsl_25_12_voltage_rail"
}
@ -5213,7 +5213,7 @@ func (p *WslHeatsinkMotorTemp) UnmarshalPacket(b []byte) error {
}
func (p *WslHeatsinkMotorTemp) String() string {
return ""
return "wsl_heatsink_motor_temp"
}
@ -5250,7 +5250,7 @@ func (p *WslDspBoardTemp) UnmarshalPacket(b []byte) error {
}
func (p *WslDspBoardTemp) String() string {
return ""
return "wsl_dsp_board_temp"
}
@ -5287,7 +5287,7 @@ func (p *WslOdometerBusAmphoursMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *WslOdometerBusAmphoursMeasurement) String() string {
return ""
return "wsl_odometer_bus_amphours_measurement"
}
@ -5322,7 +5322,7 @@ func (p *WslReserved) UnmarshalPacket(b []byte) error {
}
func (p *WslReserved) String() string {
return ""
return "wsl_reserved"
}
@ -5359,7 +5359,7 @@ func (p *WslSlipSpeedMeasurement) UnmarshalPacket(b []byte) error {
}
func (p *WslSlipSpeedMeasurement) String() string {
return ""
return "wsl_slip_speed_measurement"
}

View file

@ -72,7 +72,7 @@ func (p *{{$structName}}) UnmarshalPacket(b []byte) error {
}
func (p *{{$structName}}) String() string {
return ""
return "{{ .Name }}"
}
{{ end }}