Added backend for advanced commands

This commit is contained in:
Pax1601
2023-06-06 17:27:11 +02:00
parent ab3a017b55
commit fd00cffa15
10 changed files with 217 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ export class MouseInfoPanel extends Panel {
let bng = zeroAppend(Math.floor(bear), 3);
if (bng === "000")
if (bng === "000")
bng = "360";
var [str, unit] = this.#computeDistanceString(dist)
@@ -112,7 +112,7 @@ export class MouseInfoPanel extends Panel {
}
#onMouseMove(e: any) {
this.#update();
this.#drawMeasureLine();
}
@@ -171,7 +171,7 @@ export class MouseInfoPanel extends Panel {
#computeDistanceString(dist: number) {
var val = mToNm(dist);
var strVal = 0;
var strVal = 0;
var decimal = false;
var unit = "NM";
if (val > 10)

View File

@@ -280,6 +280,7 @@ export function fireAtArea(ID: number, latlng: LatLng) {
var data = { "fireAtArea": command }
POST(data, () => { });
}
export function setAdvacedOptions(ID: number, isTanker: boolean, isAWACS: boolean, TACAN: TACAN, radio: Radio, generalSettings: GeneralSettings) {
var command = {
"ID": ID,