update vss_util tool (#2)

This commit is contained in:
tompzf
2025-11-12 15:40:23 +01:00
committed by GitHub
parent 6ed4b1534e
commit 2fb043b2be
37 changed files with 485 additions and 179 deletions

View File

@@ -1,7 +1,7 @@
#include <iostream>
#include "complex_service.h"
const float g_fSpeedThreshold = 30.0f / 3.6f;
const float g_fSpeedThreshold = 30.0f;
CCounterSteeringExampleService::CCounterSteeringExampleService()
{
@@ -141,8 +141,8 @@ void CCounterSteeringExampleService::UpdateRearAxleAngle()
if (CounterSteeringActive())
{
// Get steering wheel angle percentage
// The steering wheel can have values from -16...16 rad.
float fSteeringWheelPercent = m_fSteeringWheel / 16.0f;
// The steering wheel can have values from -916.736 to 916.736 degrees.
float fSteeringWheelPercent = m_fSteeringWheel / 916.736f;
if (fSteeringWheelPercent > 1.0) fSteeringWheelPercent = 1.0;
if (fSteeringWheelPercent < -1.0) fSteeringWheelPercent = -1.0;