grpc_ex.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. syntax = "proto3";
  2. package grpc_ex;
  3. // The greeting service definition.
  4. service MainGateway {
  5. rpc Ctrl_Takeoff (Main_Ctrl_Takeoff_Request) returns (Main_Ctrl_Takeoff_Reply) {}
  6. rpc Ctrl_Land (Main_Ctrl_Land_Request) returns (Main_Ctrl_Land_Reply) {}
  7. rpc Ctrl_RTL (Main_Ctrl_RTL_Request) returns (Main_Ctrl_RTL_Reply) {}
  8. rpc Ctrl_PositionGlobal (Main_Ctrl_PositionGlobal_Request) returns (Main_Ctrl_PositionGlobal_Reply) {}
  9. rpc Ctrl_PositionNED (Main_Ctrl_PositionNED_Request) returns (Main_Ctrl_PositionNED_Reply) {}
  10. }
  11. // Сообщения основного шлюза БК
  12. message Main_Ctrl_Takeoff_Request {
  13. double alt_m = 1;
  14. }
  15. message Main_Ctrl_Takeoff_Reply {
  16. string message = 1;
  17. }
  18. message Main_Ctrl_Land_Request {
  19. string message = 1;
  20. }
  21. message Main_Ctrl_Land_Reply {
  22. string message = 1;
  23. }
  24. message Main_Ctrl_RTL_Request {
  25. string message = 1;
  26. }
  27. message Main_Ctrl_RTL_Reply {
  28. string message = 1;
  29. }
  30. message Main_Ctrl_PositionGlobal_Request {
  31. double lat_deg = 1;
  32. double lon_deg = 2;
  33. double alt_m = 3;
  34. double yaw_deg = 4;
  35. }
  36. message Main_Ctrl_PositionGlobal_Reply {
  37. string message = 1;
  38. }
  39. message Main_Ctrl_PositionNED_Request {
  40. double north_m = 1;
  41. double east_m = 2;
  42. double down_m = 3;
  43. double yaw_deg = 4;
  44. }
  45. message Main_Ctrl_PositionNED_Reply {
  46. string message = 1;
  47. }
  48. message Main_Ctrl_Dive_Request {
  49. string message = 1;
  50. }
  51. message Main_Ctrl_Dive_Reply {
  52. string message = 1;
  53. }
  54. message Main_MV_PhysTagPos_Request {
  55. string message = 1;
  56. }
  57. message Main_MV_PhysTagPos_Reply {
  58. string message = 1;
  59. double north_m = 2;
  60. double east_m = 3;
  61. double down_m = 4;
  62. double yaw_deg = 5;
  63. }
  64. message Main_MV_VirtTagPos_Request {
  65. int32 frame_id = 1;
  66. int32 frame_pos_x = 2;
  67. int32 frame_pos_y = 3;
  68. }
  69. message Main_MV_VirtTagPos_Reply {
  70. string message = 1;
  71. double north_m = 2;
  72. double east_m = 3;
  73. double down_m = 4;
  74. double yaw_deg = 5;
  75. }