Aufgrund einer Wartung wird GitLab am 21.09. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 21.09. between 8:00 and 9:00 am.

Commit 4c70d640 authored by Lukas Bram's avatar Lukas Bram
Browse files

Set speed limit in JavaAutopilot

parent 457d780c
Pipeline #426497 passed with stage
in 56 seconds
...@@ -125,6 +125,8 @@ public class JavaAutopilot extends EEComponent implements Inspectable { ...@@ -125,6 +125,8 @@ public class JavaAutopilot extends EEComponent implements Inspectable {
trajX = newTrajX; trajX = newTrajX;
} else if (msg.isMsg(batteryMsg)) { } else if (msg.isMsg(batteryMsg)) {
batteryLevel = (double) msg.message; batteryLevel = (double) msg.message;
} else if (msg.isMsg(upperSpeedLimitMsg)) {
upperSpeedLimitArr = (double[]) msg.message;
} }
else { else {
for (int i=0; i<sensorMsg.size(); i++){ for (int i=0; i<sensorMsg.size(); i++){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment