mirror of
https://github.com/jjshoots/RemoteIDSpoofer.git
synced 2026-04-10 15:28:47 +00:00
change some bounds
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user