mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 17:43:33 +08:00
Refactor velocity reset (#788)
* Refactor velocity reset * Add unit tests for velocity resets * Expand updates to vertical buffer to velocity resets outside of resetHeight * Improve matrix library usage * Improve naming of vertical output samples * Fix update of output_vert_new during reset * Improve naming of vertical output samples 2
This commit is contained in:
@@ -51,12 +51,14 @@ public:
|
||||
~RangeFinder();
|
||||
|
||||
void setData(float range_data, int8_t range_quality);
|
||||
void setLimits(float min_distance_m, float max_distance_m);
|
||||
|
||||
private:
|
||||
rangeSample _range_sample {};
|
||||
float _min_distance {0.2f};
|
||||
float _max_distance {20.0f};
|
||||
|
||||
void send(uint64_t time) override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace sensor
|
||||
|
||||
Reference in New Issue
Block a user