mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 00:48:23 +08:00
CollisionPrevention: changed to resolution of 5 degrees, and adapted tests to reflect the change
rewrite of obstacle_distance merging methods, and fix of various issues
This commit is contained in:
@@ -816,7 +816,7 @@ void GZBridge::laserScantoLidarSensorCallback(const gz::msgs::LaserScan &scan)
|
||||
|
||||
void GZBridge::laserScanCallback(const gz::msgs::LaserScan &scan)
|
||||
{
|
||||
static constexpr int SECTOR_SIZE_DEG = 10; // PX4 Collision Prevention only has 36 sectors of 10 degrees each
|
||||
static constexpr int SECTOR_SIZE_DEG = 5; // PX4 Collision Prevention uses 5 degree sectors
|
||||
|
||||
double angle_min_deg = scan.angle_min() * 180 / M_PI;
|
||||
double angle_step_deg = scan.angle_step() * 180 / M_PI;
|
||||
|
||||
Reference in New Issue
Block a user