2018-07-04 11:22:17 -03:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-07 18:23:40 -04:00
|
|
|
#include "AP_RangeFinder_config.h"
|
|
|
|
|
|
|
|
#if AP_RANGEFINDER_ENABLED
|
|
|
|
|
2018-07-04 11:22:17 -03:00
|
|
|
#include <AP_Param/AP_Param.h>
|
|
|
|
#include <AP_Math/AP_Math.h>
|
|
|
|
|
|
|
|
class AP_RangeFinder_Params {
|
|
|
|
public:
|
2019-02-03 22:21:58 -04:00
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
|
|
|
|
AP_RangeFinder_Params(void);
|
2024-10-11 00:46:48 -03:00
|
|
|
void convert_min_max_params();
|
2019-02-03 22:21:58 -04:00
|
|
|
|
2018-07-04 11:22:17 -03:00
|
|
|
/* Do not allow copies */
|
2022-09-30 06:50:43 -03:00
|
|
|
CLASS_NO_COPY(AP_RangeFinder_Params);
|
2019-02-03 22:21:58 -04:00
|
|
|
|
2021-06-17 15:34:07 -03:00
|
|
|
AP_Vector3f pos_offset; // position offset in body frame
|
|
|
|
AP_Float scaling;
|
|
|
|
AP_Float offset;
|
|
|
|
AP_Int16 powersave_range;
|
2024-10-11 00:46:48 -03:00
|
|
|
AP_Float min_distance;
|
|
|
|
AP_Float max_distance;
|
2018-07-04 11:22:17 -03:00
|
|
|
AP_Int8 type;
|
|
|
|
AP_Int8 pin;
|
|
|
|
AP_Int8 ratiometric;
|
|
|
|
AP_Int8 stop_pin;
|
|
|
|
AP_Int8 function;
|
2024-10-11 00:46:48 -03:00
|
|
|
AP_Float ground_clearance;
|
2018-07-04 11:22:17 -03:00
|
|
|
AP_Int8 address;
|
|
|
|
AP_Int8 orientation;
|
|
|
|
};
|
2023-11-07 18:23:40 -04:00
|
|
|
|
|
|
|
#endif // AP_RANGEFINDER_ENABLED
|