Jump to content

Target setting by EV or Lua


Herman

Empfohlene Beiträge

Hello, only a small wish, but maybe difficult to implement, I dont know.

Is it possible to give the error in the analyser for set vehicle target, if there is no route found to that target.
When we do it manually we get :"No valid route found", as it should. The analyser let it go.

1339191319_settarget.jpg.726512c92a7073a1189f78fec7a37bad.jpg

Thanks for reading, kind regards, Herman

Bearbeitet von Herman
Link zu diesem Kommentar
Auf anderen Seiten teilen

vor 22 Minuten schrieb Herman:

Is it possible to give the error in the analyser for set vehicle target

With Lua, you may check, if a vehicle has a valid target

vehicle.target = $("Destination Contact")

if vehicle.target then
  $("Label").text = vehicle.target.name
else
  $("Label").text = "fail"
end

if the attempt to set a target failed, the "target" property is empty and as such "false".

kind regards
Goetz

Link zu diesem Kommentar
Auf anderen Seiten teilen

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...