Skip to main content

Reply to "PC Control of MTH Engines by Radio Connection to the TIU"

Ted,

I can add some insight into the "Scale Factor" value.

This value is read up as a part of the DTO (Trip Odometer) and DOD (Odometer) commands so I figure that this value is somehow connected to the conversion of the DTO and DOD values into Smiles. To check this, I marked out 1/10 and 1 Smile lengths on my layout. I noted the DTO and DOD values at the start and end of the lengths as I ran an engine over it. With trial and error, and some help from one of my RTC beta testers, I worked out two equations:

Scale Factor = bytes 0x08 (H.O.) and 0x09 (L.O.) taken as a 16 bit integer

DTO response taken as a 32 bit integer

DOD response taken as a 32 bit integer

Then  

Smiles on Trip Odometer = DTO Response / (Scale Factor * 10.0)

Smiles on Odometer = (480.0 * DOD response) / (Scale Factor * 10.0)

Mark

OGR Publishing, Inc., 1310 Eastside Centre Ct, Suite 6, Mountain Home, AR 72653
800-980-OGRR (6477)
www.ogaugerr.com

×
×
×
×
×