qshell update orb usage

This commit is contained in:
Daniel Agar
2019-11-30 15:52:53 -05:00
parent 7759a5dc82
commit 55a3128c7d
6 changed files with 31 additions and 38 deletions
+12 -6
View File
@@ -41,15 +41,19 @@
#pragma once
#include <px4_platform_common/app.h>
#include "uORB/topics/qshell_req.h"
#include <uORB/Publication.hpp>
#include <uORB/Subscription.hpp>
#include <uORB/topics/qshell_req.h>
#include <uORB/topics/qshell_retval.h>
#include <vector>
#include <string>
class QShell
{
public:
QShell() {}
~QShell() {}
QShell() = default;
~QShell() = default;
int main(std::vector<std::string> argList);
@@ -59,7 +63,9 @@ private:
int _send_cmd(std::vector<std::string> &argList);
int _wait_for_retval();
static orb_advert_t _pub_qshell_req;
static int _sub_qshell_retval;
static uint32_t _current_sequence;
uORB::Publication<qshell_req_s> _qshell_req_pub{ORB_ID(qshell_req)};
uORB::Subscription _qshell_retval_sub{ORB_ID(qshell_retval)};
uint32_t _current_sequence{0};
};