change some bounds

This commit is contained in:
Jet
2023-07-16 13:59:05 +01:00
parent b447336ec5
commit 2361cfe637
3 changed files with 9 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ String Frontend::HTML() {
.button-off:active{background-color:#26282d;}
</style>
</head>
<body>
<body onload="updateTime();">
<h1>Remote ID Spoofer</h1>
<form class="configurator" action="/getlocation">
Latitude: <input class="selection" type="text" name="latitude">
@@ -133,6 +133,12 @@ String Frontend::HTML() {
msg += "You will not be able to reconnect to this page without a power cycle.</p>\n";
msg += R"rawliteral(
<script>
function updateTime() {
var today = new Date();
return [today.getHours(), today.getMinutes(), today.getSeconds()];
}
</script>
</body>
</html>
)rawliteral";

View File

@@ -19,7 +19,6 @@ void Spoofer::init() {
utm_parameters.EU_class = 5;
squitter.init(&utm_parameters);
memset(&utm_data,0,sizeof(utm_data));
Serial.println("inited");
}
void Spoofer::updateLocation(float latitude, float longitude) {

View File

@@ -20,8 +20,8 @@ class Spoofer {
// conversion constants and params
const double angle_rad2deg = 180.0 / M_PI;
const double speed_ms2kn = 1.9438452;
const double max_accel = 20 * 1000; // in mms-1
const double max_speed = 30; // in ms-2
const double max_accel = 10 * 1000; // in mms-1
const double max_speed = 25; // in ms-2
const double max_climbrate = 10 * 1000; // in mms-1
const double max_height = 200; // in m over takeoff