first commit

This commit is contained in:
2026-03-24 23:24:36 +01:00
commit a69394a05b
1638 changed files with 891299 additions and 0 deletions

59
frontend/wailsjs/go/main/App.d.ts vendored Normal file
View File

@@ -0,0 +1,59 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {propagator} from '../models';
export function ConnectFlexRadio(arg1:string,arg2:number):Promise<string>;
export function ConnectRotor(arg1:string,arg2:number):Promise<string>;
export function DisconnectFlexRadio():Promise<void>;
export function DisconnectRotor():Promise<void>;
export function GetCurrentPosition(arg1:string):Promise<propagator.SatPosition>;
export function GetDopplerEnabled():Promise<boolean>;
export function GetFlexRadioStatus():Promise<boolean>;
export function GetGroundtrack(arg1:string,arg2:number):Promise<Array<propagator.GroundtrackPoint>>;
export function GetPasses(arg1:string,arg2:number):Promise<Array<propagator.Pass>>;
export function GetRotorEnabled():Promise<boolean>;
export function GetRotorStatus():Promise<boolean>;
export function GetSatelliteList():Promise<Array<string>>;
export function GetSliceConfig():Promise<Record<string, number>>;
export function GetTLEAge():Promise<number>;
export function GetWatchlist():Promise<Array<string>>;
export function RefreshTLE():Promise<string>;
export function SetDopplerEnabled(arg1:boolean):Promise<void>;
export function SetObserverLocation(arg1:number,arg2:number,arg3:number):Promise<void>;
export function SetRotorAzOnly(arg1:boolean):Promise<void>;
export function SetRotorEnabled(arg1:boolean):Promise<void>;
export function SetSatelliteFrequencies(arg1:number,arg2:number):Promise<void>;
export function SetSatelliteMode(arg1:string):Promise<void>;
export function SetSliceConfig(arg1:number,arg2:number):Promise<void>;
export function SetTrackAzimuth(arg1:boolean):Promise<void>;
export function SetTrackFreqMode(arg1:boolean):Promise<void>;
export function SetWatchlist(arg1:Array<string>):Promise<void>;
export function StartTracking(arg1:string):Promise<string>;
export function StopTracking():Promise<void>;

View File

@@ -0,0 +1,115 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function ConnectFlexRadio(arg1, arg2) {
return window['go']['main']['App']['ConnectFlexRadio'](arg1, arg2);
}
export function ConnectRotor(arg1, arg2) {
return window['go']['main']['App']['ConnectRotor'](arg1, arg2);
}
export function DisconnectFlexRadio() {
return window['go']['main']['App']['DisconnectFlexRadio']();
}
export function DisconnectRotor() {
return window['go']['main']['App']['DisconnectRotor']();
}
export function GetCurrentPosition(arg1) {
return window['go']['main']['App']['GetCurrentPosition'](arg1);
}
export function GetDopplerEnabled() {
return window['go']['main']['App']['GetDopplerEnabled']();
}
export function GetFlexRadioStatus() {
return window['go']['main']['App']['GetFlexRadioStatus']();
}
export function GetGroundtrack(arg1, arg2) {
return window['go']['main']['App']['GetGroundtrack'](arg1, arg2);
}
export function GetPasses(arg1, arg2) {
return window['go']['main']['App']['GetPasses'](arg1, arg2);
}
export function GetRotorEnabled() {
return window['go']['main']['App']['GetRotorEnabled']();
}
export function GetRotorStatus() {
return window['go']['main']['App']['GetRotorStatus']();
}
export function GetSatelliteList() {
return window['go']['main']['App']['GetSatelliteList']();
}
export function GetSliceConfig() {
return window['go']['main']['App']['GetSliceConfig']();
}
export function GetTLEAge() {
return window['go']['main']['App']['GetTLEAge']();
}
export function GetWatchlist() {
return window['go']['main']['App']['GetWatchlist']();
}
export function RefreshTLE() {
return window['go']['main']['App']['RefreshTLE']();
}
export function SetDopplerEnabled(arg1) {
return window['go']['main']['App']['SetDopplerEnabled'](arg1);
}
export function SetObserverLocation(arg1, arg2, arg3) {
return window['go']['main']['App']['SetObserverLocation'](arg1, arg2, arg3);
}
export function SetRotorAzOnly(arg1) {
return window['go']['main']['App']['SetRotorAzOnly'](arg1);
}
export function SetRotorEnabled(arg1) {
return window['go']['main']['App']['SetRotorEnabled'](arg1);
}
export function SetSatelliteFrequencies(arg1, arg2) {
return window['go']['main']['App']['SetSatelliteFrequencies'](arg1, arg2);
}
export function SetSatelliteMode(arg1) {
return window['go']['main']['App']['SetSatelliteMode'](arg1);
}
export function SetSliceConfig(arg1, arg2) {
return window['go']['main']['App']['SetSliceConfig'](arg1, arg2);
}
export function SetTrackAzimuth(arg1) {
return window['go']['main']['App']['SetTrackAzimuth'](arg1);
}
export function SetTrackFreqMode(arg1) {
return window['go']['main']['App']['SetTrackFreqMode'](arg1);
}
export function SetWatchlist(arg1) {
return window['go']['main']['App']['SetWatchlist'](arg1);
}
export function StartTracking(arg1) {
return window['go']['main']['App']['StartTracking'](arg1);
}
export function StopTracking() {
return window['go']['main']['App']['StopTracking']();
}

View File

@@ -0,0 +1,155 @@
export namespace propagator {
export class GroundtrackPoint {
lat: number;
lon: number;
// Go type: time
t: any;
static createFrom(source: any = {}) {
return new GroundtrackPoint(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.lat = source["lat"];
this.lon = source["lon"];
this.t = this.convertValues(source["t"], null);
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
export class PassPoint {
// Go type: time
t: any;
az: number;
el: number;
static createFrom(source: any = {}) {
return new PassPoint(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.t = this.convertValues(source["t"], null);
this.az = source["az"];
this.el = source["el"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
export class Pass {
satName: string;
// Go type: time
aos: any;
// Go type: time
los: any;
maxEl: number;
// Go type: time
maxElTime: any;
aosAz: number;
losAz: number;
maxElAz: number;
duration: number;
points: PassPoint[];
static createFrom(source: any = {}) {
return new Pass(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.satName = source["satName"];
this.aos = this.convertValues(source["aos"], null);
this.los = this.convertValues(source["los"], null);
this.maxEl = source["maxEl"];
this.maxElTime = this.convertValues(source["maxElTime"], null);
this.aosAz = source["aosAz"];
this.losAz = source["losAz"];
this.maxElAz = source["maxElAz"];
this.duration = source["duration"];
this.points = this.convertValues(source["points"], PassPoint);
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
export class SatPosition {
name: string;
lat: number;
lon: number;
alt: number;
az: number;
el: number;
range: number;
rangeRate: number;
footprint: number;
static createFrom(source: any = {}) {
return new SatPosition(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.name = source["name"];
this.lat = source["lat"];
this.lon = source["lon"];
this.alt = source["alt"];
this.az = source["az"];
this.el = source["el"];
this.range = source["range"];
this.rangeRate = source["rangeRate"];
this.footprint = source["footprint"];
}
}
}