Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,224 changes: 1,224 additions & 0 deletions RocketControlUnitGUI/src/lib/MainBackground.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,191 changes: 1,191 additions & 0 deletions RocketControlUnitGUI/src/lib/MainBackgroundDark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,253 changes: 26 additions & 3,227 deletions RocketControlUnitGUI/src/lib/components/Diagram.svelte

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions RocketControlUnitGUI/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@
$: dip_tube_tc_display =
$dip_tube_tc_temperature === undefined ? 'N/A' : $dip_tube_tc_temperature;

$: rocket_mass_display = $rocket_mass === undefined ? 'N/A' : Number($rocket_mass).toFixed(2);
$: rocket_mass_display = $rocket_mass === undefined ? 'N/A' : Number($nos2_mass).toFixed(2);

$: nos1_mass_display = $nos1_mass === undefined ? 'N/A' : Number($nos1_mass).toFixed(2);
$: nos2_mass_display = $nos2_mass === undefined ? 'N/A' : Number($nos2_mass).toFixed(2);
$: nos2_mass_display = $nos2_mass === undefined ? 'N/A' : Number($rocket_mass).toFixed(2);

$: ib_pressure_display = $ib_pressure === undefined ? 'N/A' : $ib_pressure;
$: lower_pv_display = $lower_pv_pressure === undefined ? 'N/A' : $lower_pv_pressure;
Expand Down Expand Up @@ -542,7 +542,7 @@
<button
type="button"
class="btn btn-sm variant-filled-secondary"
on:click={() => performTare('NOS2')}
on:click={() => performTare('LAUNCHRAIL')}
>
TARE
</button>
Expand All @@ -553,8 +553,8 @@
type="button"
class="btn btn-sm variant-filled-error"
on:click={() => {
writeLoadCellCommand('NOS2', 'CANCEL', 0);
resumeConfirmRemoveWeight('NOS2');
writeLoadCellCommand('LAUNCHRAIL', 'CANCEL', 0);
resumeConfirmRemoveWeight('LAUNCHRAIL');
}}
>
CAL
Expand All @@ -565,7 +565,7 @@
<button
type="button"
class="btn btn-sm variant-filled-secondary"
on:click={() => performTare('LAUNCHRAIL')}
on:click={() => performTare('NOS2')}
>
TARE
</button>
Expand All @@ -576,8 +576,8 @@
type="button"
class="btn btn-sm variant-filled-error"
on:click={() => {
writeLoadCellCommand('LAUNCHRAIL', 'CANCEL', 0);
resumeConfirmRemoveWeight('LAUNCHRAIL');
writeLoadCellCommand('NOS2', 'CANCEL', 0);
resumeConfirmRemoveWeight('NOS2');
}}
>
CAL
Expand Down
60 changes: 30 additions & 30 deletions RocketControlUnitGUI/src/styles/display.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@

.vent_slider {
position: absolute;
top: calc(var(--container-width) * 0.222);
left: 85.3%;
top: calc(var(--container-width) * 0.205);
left: 96.3%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1900));
font-size: 16px;
}

.drain_slider {
position: absolute;
top: calc(var(--container-width) * 0.265);
left: 85.3%;
top: calc(var(--container-width) * 0.375);
left: 96.3%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1900));
font-size: 16px;
}
Expand All @@ -117,16 +117,16 @@

.upper_pv_heater_slider {
position: absolute;
top: calc(var(--container-width) * 0.144);
left: 90.2%;
top: calc(var(--container-width) * 0.265);
left: 93.2%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 2300));
font-size: 12px;
}

.lower_pv_heater_slider {
position: absolute;
top: calc(var(--container-width) * 0.318);
left: 98.15%;
top: calc(var(--container-width) * 0.430);
left: 91.7%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 2300));
font-size: 12px;
}
Expand Down Expand Up @@ -297,32 +297,32 @@

.upper_pv_pressure {
position: absolute;
top: calc(var(--container-width) * 0.104);
left: 92.9%;
top: calc(var(--container-width) * 0.154);
left: 87.0%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 14px;
font-size: 13px;
}

.upper_pv_tc {
position: absolute;
top: calc(var(--container-width) * 0.114);
left: 86.7%;
top: calc(var(--container-width) * 0.116);
left: 89.8%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 12px;
}

.vent_solenoid_tc {
position: absolute;
top: calc(var(--container-width) * 0.108);
left: 89.6%;
top: calc(var(--container-width) * 0.142);
left: 94.5%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 12px;
}

.dip_tube_tc {
position: absolute;
top: calc(var(--container-width) * 0.114);
left: 97.4%;
top: calc(var(--container-width) * 0.155);
left: 83.4%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 12px;
}
Expand All @@ -337,40 +337,40 @@

.ib_pressure {
position: absolute;
top: calc(var(--container-width) * 0.391);
left: 93.1%;
top: calc(var(--container-width) * 0.350);
left: 88.7%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 14px;
font-size: 12px;
}

.lower_pv_pressure {
position: absolute;
top: calc(var(--container-width) * 0.345);
left: 90.9%;
top: calc(var(--container-width) * 0.311);
left: 84.5%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 14px;
font-size: 12px;
}

.ib_temperature {
position: absolute;
top: calc(var(--container-width) * 0.391);
left: 89.8%;
top: calc(var(--container-width) * 0.351);
left: 84.0%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 12px;
}

.lower_pv_tc1 {
position: absolute;
top: calc(var(--container-width) * 0.345);
left: 94.2%;
top: calc(var(--container-width) * 0.311);
left: 89.6%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 14px;
font-size: 12px;
}

.low_solenoid_heater_tc {
position: absolute;
top: calc(var(--container-width) * 0.356);
left: 98.35%;
top: calc(var(--container-width) * 0.312);
left: 93.6%;
transform: translate(-50%, -50%) scale(calc(var(--container-width-unitless) / 1500));
font-size: 12px;
}
Expand Down