mission.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* Protobuf definitions for defining a mavlink 1.0 mission. */
  2. package mavlink;
  3. enum CoordFrameType {
  4. FRAME_GLOBAL = 0;
  5. FRAME_LOCAL_NED = 1;
  6. FRAME_MISSION = 2;
  7. FRAME_GLOBAL_RELATIVE_ALT = 3;
  8. FRAME_LOCAL_ENU = 4;
  9. FRAME_ENUM_END = 5;
  10. }
  11. enum CommandType {
  12. CMD_NAV_WAYPOINT = 16;
  13. CMD_NAV_LOITER_UNLIM = 17;
  14. CMD_NAV_LOITER_TURNS = 18;
  15. CMD_NAV_LOITER_TIME = 19;
  16. CMD_NAV_RETURN_TO_LAUNCH = 20;
  17. CMD_NAV_LAND = 21;
  18. CMD_NAV_TAKEOFF = 22;
  19. CMD_NAV_ROI = 80;
  20. CMD_NAV_PATHPLANNING = 81;
  21. CMD_NAV_LAST = 95;
  22. CMD_CONDITION_DELAY = 112;
  23. CMD_CONDITION_CHANGE_ALT = 113;
  24. CMD_CONDITION_DISTANCE = 114;
  25. CMD_CONDITION_YAW = 115;
  26. CMD_CONDITION_LAST = 159;
  27. CMD_DO_SET_MODE = 176;
  28. CMD_DO_JUMP = 177;
  29. CMD_DO_CHANGE_SPEED = 178;
  30. CMD_DO_SET_HOME = 179;
  31. CMD_DO_SET_PARAMETER = 180;
  32. CMD_DO_SET_RELAY = 181;
  33. CMD_DO_REPEAT_RELAY = 182;
  34. CMD_DO_SET_SERVO = 183;
  35. CMD_DO_REPEAT_SERVO = 184;
  36. CMD_DO_CONTROL_VIDEO = 200;
  37. CMD_DO_DIGICAM_CONFIGURE = 202;
  38. CMD_DO_DIGICAM_CONTROL = 203;
  39. CMD_DO_MOUNT_CONFIGURE = 204;
  40. CMD_DO_MOUNT_CONTROL = 205;
  41. CMD_DO_LAST = 240;
  42. CMD_PREFLIGHT_CALIBRATION = 241;
  43. CMD_PREFLIGHT_SET_SENSOR_OFFSETS = 242;
  44. CMD_PREFLIGHT_STORAGE = 245;
  45. CMD_PREFLIGHT_REBOOT_SHUTDOWN = 246;
  46. CMD_OVERRIDE_GOTO = 252;
  47. CMD_MISSION_START = 300;
  48. CMD_COMPONENT_ARM_DISARM = 400;
  49. }
  50. message Waypoint {
  51. optional int32 seq = 1;
  52. optional bool current = 2;
  53. required CommandType command = 3;
  54. optional CoordFrameType frame = 4;
  55. optional bool autocontinue = 5;
  56. optional float param1 = 6;
  57. optional float param2 = 7;
  58. optional float param3 = 8;
  59. optional float param4 = 9;
  60. optional float x = 10;
  61. optional float y = 11;
  62. optional float z = 12;
  63. }
  64. message Mission {
  65. optional Waypoint defaults = 1;
  66. repeated Waypoint waypoint = 2;
  67. }