mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 03:34:07 +08:00
Add camera capture topic advertising to constructor
This commit is contained in:
parent
30150f723a
commit
70ed3feaf2
@ -42,6 +42,8 @@ CameraFeedback::CameraFeedback() :
|
||||
if (_p_cam_cap_fback != PARAM_INVALID) {
|
||||
param_get(_p_cam_cap_fback, (int32_t *)&_cam_cap_fback);
|
||||
}
|
||||
|
||||
_capture_pub.advertise();
|
||||
}
|
||||
|
||||
bool
|
||||
@ -52,8 +54,6 @@ CameraFeedback::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
_capture_pub.advertise();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user