_sDMSPacket = string.Format(":000000 {0:0000}{1}{2:0000} {3:0000}\r\n", (int)Math.Floor(dHeave * 100 + 0.5), 'G', (int)Math.Floor(dRoll * _R2D * 100 + 0.5), (int)Math.Floor(dPitch * _R2D * 100 + 0.5));
Using the above, I get values like
:000000 -0021G0006 0281
:000000 -0018G0028 0285
and it should look like:
:000000 -0021G 0006 0281
:000000 -0018G 0028 0285
There will be times when the value will be negative and should look like:
:000000 -0021G-0006 0281
:000000 -0018G-0028 0285
and currently my formatting forks for that but when the value is positive, I seem to not be able to keep the space.
I would appreciate any ideas or help.
Thanks
fergmj
Using the above, I get values like
:000000 -0021G0006 0281
:000000 -0018G0028 0285
and it should look like:
:000000 -0021G 0006 0281
:000000 -0018G 0028 0285
There will be times when the value will be negative and should look like:
:000000 -0021G-0006 0281
:000000 -0018G-0028 0285
and currently my formatting forks for that but when the value is positive, I seem to not be able to keep the space.
I would appreciate any ideas or help.
Thanks
fergmj