Skip to content

Commit 760301a

Browse files
committed
Optimize landing recognition accuracy
1 parent 79bb056 commit 760301a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Modules/mission/autonomous_landing/autonomous_landing.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,13 @@ int main(int argc, char **argv)
452452
}
453453
case LANDING:
454454
{
455-
if(sim_mode)
455+
if(sim_mode) //??
456456
{
457457
Command_Now.header.stamp = ros::Time::now();
458458
Command_Now.Command_ID = Command_Now.Command_ID + 1;
459459
Command_Now.source = NODE_NAME;
460-
Command_Now.Mode = prometheus_msgs::ControlCommand::Disarm;
460+
//Command_Now.Mode = prometheus_msgs::ControlCommand::Disarm;
461+
Command_Now.Mode = prometheus_msgs::ControlCommand::Land;
461462
command_pub.publish(Command_Now);
462463
}else
463464
{

Modules/object_detection/config/camera_param_gazebo_monocular.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ ellipse_det_r: 0.45
2121
kcf_tracker_h: 1.7
2222

2323
## landpad_det 降落板边长(默认0.6m),0.6m包括边缘白色部分,黑色部分边长为0.4m
24-
landpad_det_len: 0.8
24+
## 仿真中降落板白色边缘边长为0.5357m
25+
landpad_det_len: 0.5357
2526

2627
## digitnum_det 数字周围的方框边长(默认1m)
2728
digitnum_det_len: 0.5

Simulator/gazebo_simulator/launch_detection/sitl_landing.launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<param name="kpx_land" value="0.2" />
3939
<param name="kpy_land" value="0.2" />
4040
<param name="kpz_land" value="0.08" />
41-
<param name="arm_height_to_ground" value="0.2" />
41+
<param name="arm_height_to_ground" value="0.3" />
4242
<param name="arm_distance_to_pad" value="0.4" />
4343
<!-- 目标是否移动及其速度 -->
4444
<param name="moving_target" value="false" />

0 commit comments

Comments
 (0)