Open alfski opened 8 years ago
my check for changes isn't really good enough... some stuff if slipping thru.
in server.js use this instead:
...
s.roll = Math.round(util.toRadians(parseFloat(viewsync[6])) * 10e3);
var syncString = s.lat+','+s.lon+','+s.alt+','+s.heading+','+s.pitch+','+s.roll;
if (syncString != lastGESyncString) {
lastGESyncString = syncString;
var msg = s.toBuffer();
for (var i in wsClients) {
wsClients[i].send(msg);
}
...
I am working on this issue, now that we have a single handler for both Cesium Master and GE. But using the sint32 in the .proto file gives this error on Cesium Master: Uncaught Error: Illegal value for Message.Field .CesiumSync.lon of type sint32: number (not an integer)
The Server(Node Relay) exits with a similar error when GE is used : Error: Illegal value for [object Object] of type sint32: number (not an integer) at Error (native)
server.js:
cesiumsync.proto:
updates to Slave-Client.html: