void OnStartScenario()
{
write("OnStartScenario - Station Speed = %f", C2xGetStationAttributeDouble("Speed"));
}
void OnStationAttributeTrigger(char attrName[])
{
if (strncmp(attrName,"Speed",strlen(attrName)) == 0)
{
write("%f sec : Speed = %f",
TimeNowNS()/1e9,
C2xGetStationAttributeDouble("Speed"));
}
}
on key 'c'
{
write("OnStartScenario - Station Latitude = %f", C2xGetStationAttributeDouble("Latitude"));
write("OnStartScenario - Station Longitude = %f", C2xGetStationAttributeDouble("Longitude"));
}