Example JScript command for positioning the camera by absolute coordinates.

This command can be used to check if the camera supports this function.

DoReactStr("TELEMETRY","1.1","MOVE_ABSOLUTE","tel_prior<1>,x<0.5>,y<1>,zoom<0>");

Request absolute telemetry coordinates using JScript command:

DoReactStr("TELEMETRY","1.1","GET_ABSOLUTE","");

Set absolute telemetry coordinates using JScript command:

DoReactStr("TELEMETRY","1.1","MOVE_ABSOLUTE","pan<0>,tilt<0>,zoom<0>,tel_prior<1>");

Example script for setting object position on the map by coordinates. If there is geo tagging coordinates are considered geographical.

{
  var d  = new Date();
  var command = CreateMsg();
  command.Action = "SET_OBJECT_GEOMETRY";
  command.SourceType = "MAP";
  command.SourceId = "1";
  command.SetParam("objtype","CAM");
  command.SetParam("objid",1);
  command.SetParam("a",d.getSeconds()*6);
  command.SetParam("x",d.getSeconds());
  command.SetParam("y",d.getSeconds());
  command.SetParam("w",20+10*Math.sin(Math.PI/d.getSeconds()));
  command.SetParam("h",20+10*Math.sin(Math.PI/d.getSeconds()));

  DoReactGlobal(command);
}