|
From: PINNINGTON, C. <chr...@ba...> - 2015-04-21 05:48:42
|
Hi,
I've written two applications, one Rti DDS (publisher) and the other OpenDDS v 3.6 (subscriber).
My type looks like this;
struct Test_Type
{
long l1;
long l2;
long l3;
double d1;
long l4;
long l5;
long l6;
}
The applications interoperate fine, however the value of the double and the subsequent longs are incorrect when the subscriber gets the sample.
For example, publishing a sample with the corresponding values; 8, 16, 24, 128, 8, 16, 24 results in the subscriber receiving; 8, 16, 24, 0, 1080033280, 8, 16
I'm running my application using RTPS for discovery, and a config file identical to the one in the "Getting Started" chapter of the Developer's Guide.
Any idea where I'm going wrong ?
Regards,
Chris
This email has been sent on behalf of one of the following companies within the BAE Systems Australia group of companies:
BAE Systems Australia Limited - Australian Company Number 008 423 005
BAE Systems Australia Defence Pty Limited - Australian Company Number 006 870 846
BAE Systems Australia Logistics Pty Limited - Australian Company Number 086 228 864
Our registered office is Evans Building, Taranaki Road, Edinburgh Parks,
Edinburgh, South Australia, 5111. If the identity of the sending company is
not clear from the content of this email please contact the sender.
This email and any attachments may contain confidential and legally
privileged information. If you are not the intended recipient, do not copy or
disclose its content, but please reply to this email immediately and highlight
the error to the sender and then immediately delete the message.
|