RC_Channels_VarInfo.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #pragma once
  2. /*
  3. this header file is expected to be #included by Vehicle subclasses
  4. of RC_Channels after defining RC_CHANNELS_SUBCLASS and
  5. RC_CHANNEL_SUBCLASS - for example, Rover defines
  6. RC_CHANNELS_SUBCLASS to be RC_Channels_Rover in APMrover2/RC_Channels.cpp, and then includes this header.
  7. This scheme reduces code duplicate between the Vehicles, and avoids the chance of things getting out of sync.
  8. */
  9. const AP_Param::GroupInfo RC_Channels::var_info[] = {
  10. // @Group: 1_
  11. // @Path: RC_Channel.cpp
  12. AP_SUBGROUPINFO(obj_channels[0], "1_", 1, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  13. // @Group: 2_
  14. // @Path: RC_Channel.cpp
  15. AP_SUBGROUPINFO(obj_channels[1], "2_", 2, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  16. // @Group: 3_
  17. // @Path: RC_Channel.cpp
  18. AP_SUBGROUPINFO(obj_channels[2], "3_", 3, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  19. // @Group: 4_
  20. // @Path: RC_Channel.cpp
  21. AP_SUBGROUPINFO(obj_channels[3], "4_", 4, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  22. // @Group: 5_
  23. // @Path: RC_Channel.cpp
  24. AP_SUBGROUPINFO(obj_channels[4], "5_", 5, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  25. // @Group: 6_
  26. // @Path: RC_Channel.cpp
  27. AP_SUBGROUPINFO(obj_channels[5], "6_", 6, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  28. // @Group: 7_
  29. // @Path: RC_Channel.cpp
  30. AP_SUBGROUPINFO(obj_channels[6], "7_", 7, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  31. // @Group: 8_
  32. // @Path: RC_Channel.cpp
  33. AP_SUBGROUPINFO(obj_channels[7], "8_", 8, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  34. // @Group: 9_
  35. // @Path: RC_Channel.cpp
  36. AP_SUBGROUPINFO(obj_channels[8], "9_", 9, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  37. // @Group: 10_
  38. // @Path: RC_Channel.cpp
  39. AP_SUBGROUPINFO(obj_channels[9], "10_", 10, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  40. // @Group: 11_
  41. // @Path: RC_Channel.cpp
  42. AP_SUBGROUPINFO(obj_channels[10], "11_", 11, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  43. // @Group: 12_
  44. // @Path: RC_Channel.cpp
  45. AP_SUBGROUPINFO(obj_channels[11], "12_", 12, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  46. // @Group: 13_
  47. // @Path: RC_Channel.cpp
  48. AP_SUBGROUPINFO(obj_channels[12], "13_", 13, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  49. // @Group: 14_
  50. // @Path: RC_Channel.cpp
  51. AP_SUBGROUPINFO(obj_channels[13], "14_", 14, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  52. // @Group: 15_
  53. // @Path: RC_Channel.cpp
  54. AP_SUBGROUPINFO(obj_channels[14], "15_", 15, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  55. // @Group: 16_
  56. // @Path: RC_Channel.cpp
  57. AP_SUBGROUPINFO(obj_channels[15], "16_", 16, RC_CHANNELS_SUBCLASS, RC_CHANNEL_SUBCLASS),
  58. // @Param: _OVERRIDE_TIME
  59. // @DisplayName: RC override timeout
  60. // @Description: Timeout after which RC overrides will no longer be used, and RC input will resume, 0 will disable RC overrides, -1 will never timeout, and continue using overrides until they are disabled
  61. // @User: Advanced
  62. // @Range: 0.0 120.0
  63. // @Units: s
  64. AP_GROUPINFO("_OVERRIDE_TIME", 32, RC_CHANNELS_SUBCLASS, _override_timeout, 3.0),
  65. // @Param: _OPTIONS
  66. // @DisplayName: RC options
  67. // @Description: RC input options
  68. // @User: Advanced
  69. // @Bitmask: 0:Ignore RC Receiver, 1:Ignore MAVLink Overrides, 2:Ignore Receiver Failsafe
  70. AP_GROUPINFO("_OPTIONS", 33, RC_CHANNELS_SUBCLASS, _options, 0),
  71. AP_GROUPEND
  72. };