diff --git a/ets2-telemetry/.vs/ets2-telemetry/v15/Browse.VC.db b/ets2-telemetry/.vs/ets2-telemetry/v15/Browse.VC.db index a184d14..39762a8 100644 Binary files a/ets2-telemetry/.vs/ets2-telemetry/v15/Browse.VC.db and b/ets2-telemetry/.vs/ets2-telemetry/v15/Browse.VC.db differ diff --git a/ets2-telemetry/inc/ets2-telemetry-common.hpp b/ets2-telemetry/inc/ets2-telemetry-common.hpp index ba72669..5d6cfc6 100644 --- a/ets2-telemetry/inc/ets2-telemetry-common.hpp +++ b/ets2-telemetry/inc/ets2-telemetry-common.hpp @@ -262,6 +262,10 @@ typedef struct ets2TelemetryMap_s } tel_rev4; + struct { + float differentialRatio; + } tel_rev11; + } ets2TelemetryMap_t; #endif \ No newline at end of file diff --git a/ets2-telemetry/inc/scs_config_handlers.hpp b/ets2-telemetry/inc/scs_config_handlers.hpp index a44adf4..e82b656 100644 --- a/ets2-telemetry/inc/scs_config_handlers.hpp +++ b/ets2-telemetry/inc/scs_config_handlers.hpp @@ -66,6 +66,10 @@ scsConfigHandle(CityDst); scsConfigHandle(CompSrc); scsConfigHandle(CompDst); +// rev11 +scsConfigHandle(differentialRatio); + + bool handleCfg(const scs_named_value_t* info); #endif \ No newline at end of file diff --git a/ets2-telemetry/src/ets2-telemetry.cpp b/ets2-telemetry/src/ets2-telemetry.cpp index f4ce775..30962fa 100644 --- a/ets2-telemetry/src/ets2-telemetry.cpp +++ b/ets2-telemetry/src/ets2-telemetry.cpp @@ -468,6 +468,9 @@ SCSAPI_RESULT scs_telemetry_init(const scs_u32_t version, const scs_telemetry_in registerChannel(TRUCK_CHANNEL_navigation_time, float, telemPtr->tel_rev4.navigationTime); registerChannel(TRUCK_CHANNEL_navigation_speed_limit, float, telemPtr->tel_rev4.navigationSpeedLimit); + // rev11 + registerChannel(TRUCK_CHANNEL_differential_radio, float, telemPtr->tel_rev11.differentialRatio); + /* registerChannel_index(TRUCK_CHANNEL_wheel_rotation, float, telemPtr->tel_rev4.wheelRotation, 0); registerChannel_index(TRUCK_CHANNEL_wheel_velocity, float, telemPtr->tel_rev4.wheelAngularVelocity, 0); diff --git a/scs_sdk_1_9/include/common/scssdk_telemetry_truck_common_channels.h b/scs_sdk_1_9/include/common/scssdk_telemetry_truck_common_channels.h index d08cc6c..8311bc0 100644 --- a/scs_sdk_1_9/include/common/scssdk_telemetry_truck_common_channels.h +++ b/scs_sdk_1_9/include/common/scssdk_telemetry_truck_common_channels.h @@ -713,6 +713,10 @@ SCSSDK_HEADER */ #define SCS_TELEMETRY_TRUCK_CHANNEL_wheel_lift_offset "truck.wheel.lift.offset" + /** + */ +#define SCS_TELEMETRY_TRUCK_CHANNEL_differential_radio "truck.differential.radio" + SCSSDK_FOOTER #endif // SCSSDK_TELEMETRY_TRUCK_COMMON_CHANNELS_H