Skip to content

Commit 7a1f31d

Browse files
committed
Hide SD logging on Torch
1 parent 67907f0 commit 7a1f31d

File tree

2 files changed

+67
-61
lines changed

2 files changed

+67
-61
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 63 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,80 +1746,82 @@
17461746
</span>
17471747
</div>
17481748

1749-
<div class="form-check mt-3">
1750-
<label class="form-check-label" for="enableLogging">Log to SD Card</label>
1751-
<input class="form-check-input" type="checkbox" value="" id="enableLogging">
1752-
<span class="tt" data-bs-placement="right"
1753-
title="If a microSD card is detected, all messages will be logged. Default: Enabled">
1754-
<span class="icon-info-circle text-primary ms-2"></span>
1755-
</span>
1756-
</div>
1757-
1758-
<div id="enableLoggingDetails" class="collapse mb-2">
1759-
1760-
<div class="form-group row">
1761-
<label for="maxLogTime" class="box-margin40 col-sm-3 col-7 col-form-label">Max Log
1762-
Time (min):
1763-
<span class="tt" data-bs-placement="right"
1764-
title="Once the max log time is achieved, logging will cease. This is useful for limiting long term, overnight, static surveys to a certain length of time. Default: 1440 minutes. Limit: 1 to 2880 minutes.">
1765-
<span class="icon-info-circle text-primary ms-2"></span>
1766-
</span>
1767-
</label>
1768-
<input type="number" class="form-control box-small" id="maxLogTime">
1769-
<p id="maxLogTimeError" class="inlineError"></p>
1749+
<div id="logToSDCard">
1750+
<div class="form-check mt-3">
1751+
<label class="form-check-label" for="enableLogging">Log to SD Card</label>
1752+
<input class="form-check-input" type="checkbox" value="" id="enableLogging">
1753+
<span class="tt" data-bs-placement="right"
1754+
title="If a microSD card is detected, all messages will be logged. Default: Enabled">
1755+
<span class="icon-info-circle text-primary ms-2"></span>
1756+
</span>
17701757
</div>
17711758

1772-
<div class="form-group row">
1773-
<label for="maxLogLength" class="box-margin40 col-sm-3 col-7 col-form-label">Max Log
1774-
Length (min):<span class="tt" data-bs-placement="right"
1775-
title="Once this length of time is achieved, a new log will be created. This is useful for creating multiple logs over a long survey. Default: 1440 minutes. Limit: 1 to 2880 minutes.">
1776-
<span class="icon-info-circle text-primary ms-2"></span>
1777-
</span>
1778-
</label>
1759+
<div id="enableLoggingDetails" class="collapse mb-2">
17791760

1780-
<input type="number" class="form-control box-small" id="maxLogLength">
1781-
<p id="maxLogLengthError" class="inlineError"></p>
1782-
</div>
1783-
1784-
<div id="logFile" class="row">
1785-
<div class="mb-2">
1786-
<label for="logFile" class="form-group box-margin20">Log file name: <span
1787-
id="logFileName" style="display:inline;">SFE_Log.ubx</span>
1761+
<div class="form-group row">
1762+
<label for="maxLogTime" class="box-margin40 col-sm-3 col-7 col-form-label">Max Logging
1763+
Time (min):
1764+
<span class="tt" data-bs-placement="right"
1765+
title="Once the max log time is achieved, logging will cease. This is useful for limiting long term, overnight, static surveys to a certain length of time. Default: 1440 minutes. Limit: 1 to 2880 minutes.">
1766+
<span class="icon-info-circle text-primary ms-2"></span>
1767+
</span>
17881768
</label>
1769+
<input type="number" class="form-control box-small" id="maxLogTime">
1770+
<p id="maxLogTimeError" class="inlineError"></p>
17891771
</div>
1790-
</div>
17911772

1792-
<div class="form-group row">
1793-
<div style="margin-bottom:5px;">
1794-
<button type="button" id="startNewLog" class="btn btn-primary box-margin20"
1795-
onClick="startNewLog()">Start New Log</button>
1796-
<span class="tt" data-bs-placement="right"
1797-
title="Closes the current log and starts a new one.">
1798-
<span class="icon-info-circle text-primary ms-2"></span>
1799-
</span>
1773+
<div class="form-group row">
1774+
<label for="maxLogLength" class="box-margin40 col-sm-3 col-7 col-form-label">Max Log
1775+
File Length (min):<span class="tt" data-bs-placement="right"
1776+
title="Once this length of time is achieved, a new log will be created. This is useful for creating multiple logs over a long survey. Default: 1440 minutes. Limit: 1 to 2880 minutes.">
1777+
<span class="icon-info-circle text-primary ms-2"></span>
1778+
</span>
1779+
</label>
1780+
1781+
<input type="number" class="form-control box-small" id="maxLogLength">
1782+
<p id="maxLogLengthError" class="inlineError"></p>
18001783
</div>
1801-
</div>
18021784

1803-
<div class="form-check mt-1 box-margin20">
1804-
<label class="form-check-label" for="enableARPLogging">Enable ARP Logging</label>
1805-
<input class="form-check-input" type="checkbox" value="" id="enableARPLogging" unchecked>
1806-
<span class="tt" data-bs-placement="right"
1807-
title="If enabled, the Antenna Reference Position from RTCM 1005/1006 will be added to the log.">
1808-
<span class="icon-info-circle text-primary ms-2"></span>
1809-
</span>
1810-
</div>
1785+
<div id="logFile" class="row">
1786+
<div class="mb-2">
1787+
<label for="logFile" class="form-group box-margin20">Log file name: <span
1788+
id="logFileName" style="display:inline;">SFE_Log.ubx</span>
1789+
</label>
1790+
</div>
1791+
</div>
18111792

1812-
<div id="enableARPLoggingDetails" class="collapse mb-2">
18131793
<div class="form-group row">
1814-
<label for="ARPLoggingInterval" class="box-margin40 col-sm-3 col-7 col-form-label">ARP
1815-
Logging Interval (s):
1794+
<div style="margin-bottom:5px;">
1795+
<button type="button" id="startNewLog" class="btn btn-primary box-margin20"
1796+
onClick="startNewLog()">Start New Log</button>
18161797
<span class="tt" data-bs-placement="right"
1817-
title="If ARP logging is enabled, the Antenna Reference Position will be logged at intervals of this many seconds.">
1798+
title="Closes the current log and starts a new one.">
18181799
<span class="icon-info-circle text-primary ms-2"></span>
18191800
</span>
1820-
</label>
1821-
<input type="number" class="form-control box-small" id="ARPLoggingInterval">
1822-
<p id="ARPLoggingIntervalError" class="inlineError"></p>
1801+
</div>
1802+
</div>
1803+
1804+
<div class="form-check mt-1 box-margin20">
1805+
<label class="form-check-label" for="enableARPLogging">Enable ARP Logging</label>
1806+
<input class="form-check-input" type="checkbox" value="" id="enableARPLogging" unchecked>
1807+
<span class="tt" data-bs-placement="right"
1808+
title="If enabled, the Antenna Reference Position from RTCM 1005/1006 will be added to the log.">
1809+
<span class="icon-info-circle text-primary ms-2"></span>
1810+
</span>
1811+
</div>
1812+
1813+
<div id="enableARPLoggingDetails" class="collapse mb-2">
1814+
<div class="form-group row">
1815+
<label for="ARPLoggingInterval" class="box-margin40 col-sm-3 col-7 col-form-label">ARP
1816+
Logging Interval (s):
1817+
<span class="tt" data-bs-placement="right"
1818+
title="If ARP logging is enabled, the Antenna Reference Position will be logged at intervals of this many seconds.">
1819+
<span class="icon-info-circle text-primary ms-2"></span>
1820+
</span>
1821+
</label>
1822+
<input type="number" class="form-control box-small" id="ARPLoggingInterval">
1823+
<p id="ARPLoggingIntervalError" class="inlineError"></p>
1824+
</div>
18231825
</div>
18241826
</div>
18251827
</div>

Firmware/RTK_Everywhere/AP-Config/src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ function parseIncoming(msg) {
105105
show("ntpConfig");
106106
hide("tiltCompensationSettings");
107107
hide("portsConfig");
108+
show("logToSDCard");
108109
}
109110
else if (platformPrefix == "Facet v2") {
110111
show("baseConfig");
@@ -113,6 +114,7 @@ function parseIncoming(msg) {
113114
hide("ntpConfig");
114115
hide("tiltCompensationSettings");
115116
show("portsConfig");
117+
show("logToSDCard");
116118
}
117119
else if (platformPrefix == "Facet mosaic") {
118120
show("baseConfig");
@@ -121,6 +123,7 @@ function parseIncoming(msg) {
121123
hide("ntpConfig");
122124
hide("tiltCompensationSettings");
123125
show("portsConfig");
126+
show("logToSDCard");
124127
}
125128
else if (platformPrefix == "Torch") {
126129
show("baseConfig");
@@ -129,6 +132,7 @@ function parseIncoming(msg) {
129132
hide("ntpConfig");
130133
show("tiltCompensationSettings");
131134
hide("portsConfig");
135+
hide("logToSDCard");
132136

133137
select = ge("dynamicModel");
134138
let newOption = new Option('Survey', '0');

0 commit comments

Comments
 (0)