I have MS VC++ 2010 Express, so I can open the SDK files and look through them...
According to the file "..\scs_sdk_1_0\include\common\scssdk_telemetry_truck_common_channnels.h"
I see the channels defined for everything for motion ( velocity, acceleration, speed, etc )
// Movement.
/**
* @brief Represents world space position and orientation of the truck.
*
* Type: dplacement
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_world_placement "truck.world.placement"
/**
* @brief Represents vehicle space linear velocity of the truck measured
* in meters per second.
*
* Type: fvector
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_local_linear_velocity "truck.local.velocity.linear"
/**
* @brief Represents vehicle space angular velocity of the truck measured
* in rotations per second.
*
* Type: fvector
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_local_angular_velocity "truck.local.velocity.angular"
/**
* @brief Represents vehicle space linear acceleration of the truck measured
* in meters per second^2
*
* Type: fvector
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_local_linear_acceleration "truck.local.acceleration.linear"
/**
* @brief Represents vehicle space angular acceleration of the truck meassured
* in rotations per second^2
*
* Type: fvector
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_local_angular_acceleration "truck.local.acceleration.angular"
/**
* @brief Represents a vehicle space position and orientation delta
* of the cabin from its default position.
*
* Type: fplacement
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_cabin_offset "truck.cabin.offset"
/**
* @brief Represents cabin space angular velocity of the cabin measured
* in rotations per second.
*
* Type: fvector
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_cabin_angular_velocity "truck.cabin.velocity.angular"
/**
* @brief Represents cabin space angular acceleration of the cabin
* measured in rotations per second^2
*
* Type: fvector
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_cabin_angular_acceleration "truck.cabin.acceleration.angular"
/**
* @brief Represents a cabin space position and orientation delta
* of the driver head from its default position.
*
* Note that this value might change rapidly as result of
* the user switching between cameras or camera presets.
*
* Type: fplacement
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_head_offset "truck.head.offset"
/**
* @brief Speedometer speed in meters per second.
*
* Uses negative value to represent reverse movement.
*
* Type: float
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_speed "truck.speed"
// Powertrain related
/**
* @brief RPM of the engine.
*
* Type: float
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_engine_rpm "truck.engine.rpm"
/**
* @brief Gear currently selected in the engine.
*
* @li >0 - Forwad gears
* @li 0 - Neutral
* @li <0 - Reverse gears
*
* Type: s32
*/
#define SCS_TELEMETRY_TRUCK_CHANNEL_engine_gear "truck.engine.gear"
fvector and dvector seem to be explained in "..\scs_sdk_1_0\include\scssdk_value.hscssdk_value.h"
/**
* @name Vector types.
*
* In local space the X points to right, Y up and Z backwards.
* In world space the X points to east, Y up and Z south.
*/
//@{
struct scs_value_fvector_t
{
scs_float_t x;
scs_float_t y;
scs_float_t z;
};
struct scs_value_dvector_t
{
scs_double_t x;
scs_double_t y;
scs_double_t z;
};
//@}
and
for dashboard gauges ( fuel, lights, rpm, ) and other information ( air pressure, oil pressure, etc ) the entire file contains all
the defined telemetry channels for the truck.
So with the bit that I understand... this file is included inside "..\scs_sdk_1_0\include\eurotrucks2\scssdk_telemetry_eut2.h"
#include "../scssdk.h"
#include "../common/scssdk_telemetry_common_configs.h"
#include "../common/scssdk_telemetry_common_channels.h"
#include "../common/scssdk_telemetry_truck_common_channels.h"
#include "../common/scssdk_telemetry_trailer_common_channels.h"
and if you look at "..\scs_sdk_1_0\examples\telemetry\telemetry.cpp"
that file seems to be a telemetry.log file creator.
It contains preexisting log file code for
float heading;
float pitch;
float roll;
float speed;
float rpm;
int gear;
// Register for channels. The channel might be missing if the game does not support
// it (SCS_RESULT_not_found) or if does not support the requested type
// (SCS_RESULT_unsupported_type). For purpose of this example we ignore the failues
// so the unsupported channels will remain at theirs default value.
version_params->register_for_channel(SCS_TELEMETRY_TRUCK_CHANNEL_world_placement, SCS_U32_NIL, SCS_VALUE_TYPE_euler, SCS_TELEMETRY_CHANNEL_FLAG_no_value, telemetry_store_orientation, &telemetry);
version_params->register_for_channel(SCS_TELEMETRY_TRUCK_CHANNEL_speed, SCS_U32_NIL, SCS_VALUE_TYPE_float, SCS_TELEMETRY_CHANNEL_FLAG_none, telemetry_store_float, &telemetry.speed);
version_params->register_for_channel(SCS_TELEMETRY_TRUCK_CHANNEL_engine_rpm, SCS_U32_NIL, SCS_VALUE_TYPE_float, SCS_TELEMETRY_CHANNEL_FLAG_none, telemetry_store_float, &telemetry.rpm);
version_params->register_for_channel(SCS_TELEMETRY_TRUCK_CHANNEL_engine_gear, SCS_U32_NIL, SCS_VALUE_TYPE_s32, SCS_TELEMETRY_CHANNEL_FLAG_none, telemetry_store_s32, &telemetry.gear);
So I think that file can be compiled and used for testing how to extract more channels? i.e. veleocity, acceleration, and more?
I apologize for not knowing if this helps or not, trying my best with what I can figure out on my own.
Let me know if any of this helps. Do I need to look somewhere else, or try something different?
Thanks again!