mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed radios not working, added mouse coordinates panel, started readding tips
This commit is contained in:
@@ -76,6 +76,10 @@ module.exports = function (configLocation, viteProxy) {
|
||||
app.use("/api/elevation", elevationRouter);
|
||||
app.use("/api/databases", databasesRouter);
|
||||
app.use("/resources", resourcesRouter);
|
||||
app.use("/express/api/airbases", airbasesRouter);
|
||||
app.use("/express/api/elevation", elevationRouter);
|
||||
app.use("/express/api/databases", databasesRouter);
|
||||
app.use("/express/resources", resourcesRouter);
|
||||
|
||||
/* Set default index */
|
||||
if (!viteProxy) {
|
||||
|
||||
@@ -29,6 +29,12 @@ export class SRSHandler {
|
||||
this.decodeData(data);
|
||||
});
|
||||
this.ws.on("close", () => {
|
||||
let CLIENT_DISCONNECT = {
|
||||
Client: this.data,
|
||||
MsgType: 5,
|
||||
Version: SRS_VERSION,
|
||||
};
|
||||
this.tcp.write(`${JSON.stringify(CLIENT_DISCONNECT)}\n`);
|
||||
this.tcp.end();
|
||||
});
|
||||
|
||||
@@ -113,6 +119,13 @@ export class SRSHandler {
|
||||
this.data.RadioInfo.radios[idx].freq = setting.frequency;
|
||||
this.data.RadioInfo.radios[idx].modulation = setting.modulation;
|
||||
});
|
||||
|
||||
let RADIO_UPDATE = {
|
||||
Client: this.data,
|
||||
MsgType: 3,
|
||||
Version: SRS_VERSION,
|
||||
};
|
||||
this.tcp.write(`${JSON.stringify(RADIO_UPDATE)}\n`);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user