diff --git a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h index e4fa83304514d3..c8b7e405fa31b6 100644 --- a/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h +++ b/libraries/AP_Proximity/AP_Proximity_RPLidarA2.h @@ -58,6 +58,9 @@ class AP_Proximity_RPLidarA2 : public AP_Proximity_Backend_Serial // update state void update(void) override; + // increase receive buffer size + uint16_t rxspace() const override { return 1280; }; + // get maximum and minimum distances (in meters) of sensor float distance_max() const override; float distance_min() const override;