Skip to content

Commit

Permalink
Testing for some new telemetry (differential.radio) Funbit#1
Browse files Browse the repository at this point in the history
  • Loading branch information
icaros7 committed Nov 9, 2018
1 parent 5590805 commit fbd20b6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
Binary file modified ets2-telemetry/.vs/ets2-telemetry/v15/Browse.VC.db
Binary file not shown.
4 changes: 4 additions & 0 deletions ets2-telemetry/inc/ets2-telemetry-common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ typedef struct ets2TelemetryMap_s

} tel_rev4;

struct {
float differentialRatio;
} tel_rev11;

} ets2TelemetryMap_t;

#endif
4 changes: 4 additions & 0 deletions ets2-telemetry/inc/scs_config_handlers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ scsConfigHandle(CityDst);
scsConfigHandle(CompSrc);
scsConfigHandle(CompDst);

// rev11
scsConfigHandle(differentialRatio);


bool handleCfg(const scs_named_value_t* info);

#endif
3 changes: 3 additions & 0 deletions ets2-telemetry/src/ets2-telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbd20b6

Please sign in to comment.