40 lines
869 B
Plaintext
40 lines
869 B
Plaintext
|
|
# File generated by Wizard 2.9.0 on Dec 1, 2025.
|
||
|
|
advanced_behavior move
|
||
|
|
|
||
|
|
script_variables
|
||
|
|
WsfControlMessage msg=WsfControlMessage();
|
||
|
|
string str="";
|
||
|
|
WsfTrack track=WsfTrack();
|
||
|
|
double alat=25.076;
|
||
|
|
double alon=121.22;
|
||
|
|
end_script_variables
|
||
|
|
|
||
|
|
on_init
|
||
|
|
|
||
|
|
end_on_init
|
||
|
|
|
||
|
|
on_message
|
||
|
|
type WSF_CONTROL_MESSAGE
|
||
|
|
script
|
||
|
|
WsfControlMessage msg=(WsfControlMessage)MESSAGE;
|
||
|
|
writeln("receive",msg.AuxDataString("task"));
|
||
|
|
str=msg.AuxDataString("task");
|
||
|
|
end_script
|
||
|
|
end_on_message
|
||
|
|
|
||
|
|
precondition
|
||
|
|
if(str=="MOVE")
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
return false;
|
||
|
|
end_precondition
|
||
|
|
|
||
|
|
execute
|
||
|
|
PLATFORM.GoToSpeed(16);#m/s
|
||
|
|
PLATFORM.GoToLocation(alat,alon);
|
||
|
|
str="";
|
||
|
|
return Success();
|
||
|
|
end_execute
|
||
|
|
|
||
|
|
end_advanced_behavior
|