Commit 0b781233 authored by Roque's avatar Roque

erp5_officejs_drone_simulator: always use map_size for coordinates

parent 41f48cbe
...@@ -356,8 +356,8 @@ var FixedWingDroneAPI = /** @class */ (function () { ...@@ -356,8 +356,8 @@ var FixedWingDroneAPI = /** @class */ (function () {
if (isNaN(lat) || isNaN(lon) || isNaN(z)) { if (isNaN(lat) || isNaN(lon) || isNaN(z)) {
throw new Error('Target coordinates must be numbers'); throw new Error('Target coordinates must be numbers');
} }
var x = this._mapManager.longitudToX(lon, this._map_dict.width), var x = this._mapManager.longitudToX(lon, this._map_dict.map_size),
y = this._mapManager.latitudeToY(lat, this._map_dict.depth), y = this._mapManager.latitudeToY(lat, this._map_dict.map_size),
position = this._mapManager.normalize(x, y, this._map_dict), position = this._mapManager.normalize(x, y, this._map_dict),
processed_coordinates; processed_coordinates;
if (z > this._map_dict.start_AMSL) { if (z > this._map_dict.start_AMSL) {
......
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <unicode>zope</unicode> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1009.38408.26347.58350</string> </value> <value> <string>1009.59163.16294.47701</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1688634921.8</float> <float>1690395852.2</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment