diff --git a/src/homecoords.ts b/src/homecoords.ts
index 5d62b86..9dd2144 100644
--- a/src/homecoords.ts
+++ b/src/homecoords.ts
@@ -5,8 +5,27 @@ let submit_button = document.getElementById("submit");
let lat_input = document.getElementById("lat");
let long_input = document.getElementById("long");
let alt_input = document.getElementById("alt");
+let optdrop = document.getElementById("OptDrop");
+
+let coord_dict: { [key: string]: number[] } = {
+ 'talbot': [40.1119, -88.2282, 0],
+ 'qcrc': [41.488167, -89.500778, 0],
+ 'michiana': [41.774273, -86.572435, 0],
+ 'irec': [32.990, -106.9754, 0]
+}
submit_button.addEventListener("click", () => {
ipcRenderer.send('homecoords', parseFloat(lat_input.value), parseFloat(long_input.value), parseFloat(alt_input.value));
// call_sign_input.value = "";
+});
+
+optdrop.addEventListener("change", () => {
+ let opt = optdrop.options[optdrop.selectedIndex].value;
+ // alert(opt);
+ if (opt === "0") {
+ return;
+ }
+ lat_input.value = coord_dict[opt][0].toString();
+ long_input.value = coord_dict[opt][1].toString();
+ alt_input.value = coord_dict[opt][2].toString();
});
\ No newline at end of file
diff --git a/src/index.ts b/src/index.ts
index 3e3cd2b..7a20ecd 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -456,8 +456,10 @@ export function demo() {
LSM_IMU_az: val * rand,
// gps_lat: 40.1119 + val / 1000, //Talbot Lat
// gps_long: -88.2282 + rand / 1000, //Talbot Long
- gps_lat: 41.488167 + val / 1000, //QCRC
- gps_long: -89.500778 + rand / 1000, //QCRC
+ // gps_lat: 41.488167 + val / 1000, //QCRC
+ // gps_long: -89.500778 + rand / 1000, //QCRC
+ gps_lat: 41.774273 + val / 1000, // Michiana
+ gps_long: -86.572435 + rand / 1000, // Michiana
// gps_lat: 32.990 + val / 1000, //IREC
// gps_long: -106.9754 + rand / 1000, //IREC
// gps_lat: 0,
|