Camera feedback: Indicate success

If the feedback module is loaded then we want to provide capture feedback.
This commit is contained in:
Lorenz Meier 2020-12-30 21:42:15 +01:00
parent 404f74f996
commit e27d80abc4
2 changed files with 1 additions and 14 deletions

View File

@ -105,15 +105,7 @@ CameraFeedback::Run()
capture.q[1] = att.q[1];
capture.q[2] = att.q[2];
capture.q[3] = att.q[3];
// Indicate whether capture feedback from camera is available
// What is case 0 for capture.result?
if (!_param_camera_capture_feedback.get()) {
capture.result = 0;
} else {
capture.result = 1;
}
capture.result = 1;
_capture_pub.publish(capture);
}

View File

@ -83,9 +83,4 @@ private:
uORB::Subscription _att_sub{ORB_ID(vehicle_attitude)};
uORB::Publication<camera_capture_s> _capture_pub{ORB_ID(camera_capture)};
DEFINE_PARAMETERS(
(ParamBool<px4::params::CAM_CAP_FBACK>) _param_camera_capture_feedback
)
};