Jump to content

Target setting by EV or Lua


Herman
 Share

Recommended Posts

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

Edited by Herman
Link to comment
Share on other sites

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 to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...