Raúl
Moderator
 Moderator
| Posts: 591 |  | Karma: 10
|
Re:Simulated GPS Sensor - 2009/12/23 14:23
Hi, I hardly ever use VPL, and I've never used the simulated GPS service, so I'm probably of little help here. But I was curious and I looked into the Simulated GPS service code.
The X coordinate member:
| Code: | /// <summary>
/// X component
/// </summary>
[DataMember]
[Browsable(false)]
public double X { get; set; }
|
It has the Browsable attribute set to false, which means that it won't show in a properties window. It is however there and you should be able to use it.
The service supports subscriptions, so the way to use it is to subscribe to it from your service, and then access to the X, Y, and Z coords in your notification handler (as you will get the GPSState object).
In VPL, I think you have to use the round output for notifications. Then, I think you can select the Replace notification, so you can have access to the updated GPS service state (including X coord.).
Cheers,
Raúl.
Raúl Arrabales Moreno. conscious-robots.com/raul |