mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:23:34 +08:00
committed by
Julian Oes
parent
d6a99c79c1
commit
5846a22a8f
@@ -50,7 +50,7 @@ KraitRpcWrapper::~KraitRpcWrapper() {}
|
||||
* Initiatizes the rpc channel px4 muorb
|
||||
*/
|
||||
bool KraitRpcWrapper::Initialize()
|
||||
{
|
||||
{
|
||||
return (px4muorb_orb_initialize() == 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,41 +31,41 @@
|
||||
|
||||
namespace px4muorb
|
||||
{
|
||||
class KraitRpcWrapper;
|
||||
class KraitRpcWrapper;
|
||||
}
|
||||
|
||||
class px4muorb::KraitRpcWrapper
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
KraitRpcWrapper();
|
||||
|
||||
/**
|
||||
* destructor
|
||||
*/
|
||||
~KraitRpcWrapper();
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
KraitRpcWrapper();
|
||||
|
||||
/**
|
||||
* Initiatizes the rpc channel px4 muorb
|
||||
*/
|
||||
bool Initialize();
|
||||
/**
|
||||
* destructor
|
||||
*/
|
||||
~KraitRpcWrapper();
|
||||
|
||||
/**
|
||||
* Terminate to clean up the resources. This should be called at program exit
|
||||
*/
|
||||
bool Terminate();
|
||||
/**
|
||||
* Initiatizes the rpc channel px4 muorb
|
||||
*/
|
||||
bool Initialize();
|
||||
|
||||
/**
|
||||
* Muorb related functions to pub/sub of orb topic from krait to adsp
|
||||
*/
|
||||
int32_t AddSubscriber( const char* topic );
|
||||
int32_t RemoveSubscriber( const char* topic );
|
||||
int32_t SendData( const char* topic, int32_t length_in_bytes, const uint8_t* data );
|
||||
int32_t ReceiveData( int32_t* msg_type, char** topic, int32_t* length_in_bytes, uint8_t** data );
|
||||
int32_t IsSubscriberPresent( const char* topic, int32_t* status );
|
||||
int32_t ReceiveBulkData( uint8_t** bulk_data, int32_t* length_in_bytes, int32_t* topic_count );
|
||||
int32_t UnblockReceiveData();
|
||||
/**
|
||||
* Terminate to clean up the resources. This should be called at program exit
|
||||
*/
|
||||
bool Terminate();
|
||||
|
||||
/**
|
||||
* Muorb related functions to pub/sub of orb topic from krait to adsp
|
||||
*/
|
||||
int32_t AddSubscriber(const char *topic);
|
||||
int32_t RemoveSubscriber(const char *topic);
|
||||
int32_t SendData(const char *topic, int32_t length_in_bytes, const uint8_t *data);
|
||||
int32_t ReceiveData(int32_t *msg_type, char **topic, int32_t *length_in_bytes, uint8_t **data);
|
||||
int32_t IsSubscriberPresent(const char *topic, int32_t *status);
|
||||
int32_t ReceiveBulkData(uint8_t **bulk_data, int32_t *length_in_bytes, int32_t *topic_count);
|
||||
int32_t UnblockReceiveData();
|
||||
};
|
||||
#endif // _px4muorb_KraitWrapper_hpp_
|
||||
|
||||
Reference in New Issue
Block a user