-
-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
camera server interation test working
- Loading branch information
Showing
16 changed files
with
126 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <memory> | ||
|
||
namespace mavsdk { | ||
|
||
class MavsdkImpl; | ||
class ServerComponentImpl; | ||
class ServerPluginImplBase; | ||
|
||
/** | ||
* TODO: add comments | ||
*/ | ||
class ServerComponent { | ||
public: | ||
private: | ||
std::shared_ptr<ServerComponentImpl> server_component_impl() { return _server_component_impl; }; | ||
|
||
std::shared_ptr<ServerComponentImpl> _server_component_impl; | ||
ServerComponent(MavsdkImpl& mavsdk_impl, uint8_t component_id); | ||
|
||
private: | ||
friend ServerPluginImplBase; | ||
|
||
std::shared_ptr<ServerComponentImpl> _impl; | ||
}; | ||
|
||
} // namespace mavsdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "server_component.h" | ||
#include "server_component_impl.h" | ||
#include "mavsdk_impl.h" | ||
|
||
namespace mavsdk { | ||
|
||
ServerComponent::ServerComponent(MavsdkImpl& mavsdk_impl, uint8_t component_id) : | ||
_impl(std::make_shared<ServerComponentImpl>(mavsdk_impl, component_id)) | ||
{} | ||
|
||
} // namespace mavsdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#include "server_plugin_impl_base.h" | ||
#include "mavsdk.h" | ||
#include "mavsdk_impl.h" | ||
#include "server_component.h" | ||
|
||
namespace mavsdk { | ||
|
||
ServerPluginImplBase::ServerPluginImplBase(std::shared_ptr<ServerComponent> server_component) : | ||
_server_component_impl(server_component->server_component_impl()) | ||
ServerPluginImplBase::ServerPluginImplBase(Mavsdk& mavsdk) : | ||
_server_component_impl(mavsdk._impl->server_component(MAV_COMP_ID_CAMERA)->_impl) | ||
{} | ||
|
||
} // namespace mavsdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters