AP_RangeFinder_Params.h 772 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <AP_Param/AP_Param.h>
  3. #include <AP_Math/AP_Math.h>
  4. class AP_RangeFinder_Params {
  5. public:
  6. static const struct AP_Param::GroupInfo var_info[];
  7. AP_RangeFinder_Params(void);
  8. /* Do not allow copies */
  9. AP_RangeFinder_Params(const AP_RangeFinder_Params &other) = delete;
  10. AP_RangeFinder_Params &operator=(const AP_RangeFinder_Params&) = delete;
  11. AP_Int8 type;
  12. AP_Int8 pin;
  13. AP_Int8 ratiometric;
  14. AP_Int16 powersave_range;
  15. AP_Int8 stop_pin;
  16. AP_Float scaling;
  17. AP_Float offset;
  18. AP_Int8 function;
  19. AP_Int16 min_distance_cm;
  20. AP_Int16 max_distance_cm;
  21. AP_Int8 ground_clearance_cm;
  22. AP_Int8 address;
  23. AP_Vector3f pos_offset; // position offset in body frame
  24. AP_Int8 orientation;
  25. };