-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
precision landing #12391
Comments
Coud you put the code between ``` to format it? |
Also, it is updated, by ORB subscription. orb_check(_target_pose_sub, &_target_pose_updated); If there is a new message, the target will be updated. And the target is only updated by an external input. There are 2 places where the topic is advertised, MAVLink and convertion of the IRLock measurements. $ grep -nr "orb_advertise(ORB_ID(landing_target_pose)" .
./src/modules/mavlink/mavlink_receiver.cpp:2173: _landing_target_pose_pub = orb_advertise(ORB_ID(landing_target_pose), &landing_target_pose);
./src/modules/landing_target_estimator/LandingTargetEstimator.cpp:224: _targetPosePub = orb_advertise(ORB_ID(landing_target_pose), &_target_pose); |
Where is "orb_check(_target_pose_sub, &_target_pose_updated);"?I can't find it. |
FYI @okalachev |
I got it,the source code is different between master and safe_landing_1.9 branch.which branch is stable?which branch can I test it on my drone?thanks. |
Good catch @david6096, this appears to be a regression introduced by e4ad994#diff-f45ed77ef246e60c91f6300a68629229L114 It looks like this is not yet broken in |
You can test 1.9.1 I guess. |
thanks,thanks very much. |
let's keep this open until the problem is fixed. I'll try to make a PR soon. |
in the src/modules/navigator/precland.cpp,there is following source code:
bool PrecLand::check_state_conditions(PrecLandState state)
{
vehicle_local_position_s *vehicle_local_position = _navigator->get_local_position();
}
...
...
the member variable "_target_pose_updated" is initialized to "False",and not be assigned "True" anywhere. so the precision landing state will never be switched to HorizontalApproach and DescendAboveTarget. I wondered that is it a bug?
some tips about it?
The text was updated successfully, but these errors were encountered: