diff --git a/ArduPilotProtocol_8h_source.html b/ArduPilotProtocol_8h_source.html index 2a9f8175..08e480f0 100644 --- a/ArduPilotProtocol_8h_source.html +++ b/ArduPilotProtocol_8h_source.html @@ -125,89 +125,66 @@
31 */
32 robot::types::DataPoint<Eigen::Quaterniond> getIMU();
33
-
34 /* @brief Gets the last reported heading (degrees)
-
35 *
-
36 * @return Last reported heading
-
37 */
-
38 robot::types::DataPoint<int> getHeading();
-
39
-
40private:
-
41 /* @brief Validates GPS request
-
42 *
-
43 * @param json message
+
34private:
+
35 /* @brief Validates GPS request
+
36 *
+
37 * @param json message
+
38 *
+
39 * @return True if message is valid, false otherwise
+
40 */
+
41 static bool validateGPSRequest(const nlohmann::json& j);
+
42
+
43 /* @brief Validates IMU request
44 *
-
45 * @return True if message is valid, false otherwise
-
46 */
-
47 static bool validateGPSRequest(const nlohmann::json& j);
-
48
-
49 /* @brief Validates IMU request
-
50 *
-
51 * @param json message
+
45 * @param json message
+
46 *
+
47 * @return True if message is valid, false otherwise
+
48 */
+
49 static bool validateIMURequest(const nlohmann::json& j);
+
50
+
51 /* @brief Destructures GPS json message and updates last reported GPS values
52 *
-
53 * @return True if message is valid, false otherwise
+
53 * @param json message
54 */
-
55 static bool validateIMURequest(const nlohmann::json& j);
+
55 void handleGPSRequest(const nlohmann::json& j);
56
-
57 /* @brief Validates heading request
+
57 /* @brief Destructures IMU json message and updates last reported GPS values
58 *
59 * @param json message
-
60 *
-
61 * @return True if message is valid, false otherwise
-
62 */
-
63 static bool validateHeadingRequest(const nlohmann::json& j);
-
64
-
65 /* @brief Destructures GPS json message and updates last reported GPS values
-
66 *
-
67 * @param json message
-
68 */
-
69 void handleGPSRequest(const nlohmann::json& j);
-
70
-
71 /* @brief Destructures IMU json message and updates last reported GPS values
-
72 *
-
73 * @param json message
-
74 */
-
75 void handleIMURequest(const nlohmann::json& j);
-
76
-
77 /* @brief Destructures heading json message and updates last reported GPS values
-
78 *
-
79 * @param json message
-
80 */
-
81 void handleHeadingRequest(const nlohmann::json& j);
-
82
-
83 /* @brief Checks if the ArduPilotProtocol is connected
-
84 *
-
85 * @return True if connected, false if not connected
-
86 */
-
87 bool isArduPilotConnected();
-
88
-
89 /* @brief Registers the protocol with the websocket server
-
90 *
-
91 * @param websocket server of which to add protocol
-
92 */
-
93 void initArduPilotServer(net::websocket::SingleClientWSServer& websocketServer);
-
94
-
95 /* @brief Connection handler for websocket server */
-
96 void clientConnected();
-
97
-
98 /* @brief Disconnect handler for websocket server */
-
99 void clientDisconnected();
-
100
-
101 std::mutex _connectionMutex;
-
102 bool _arduPilotProtocolConnected;
-
103
-
104 std::mutex _lastHeadingMutex;
-
105 robot::types::DataPoint<int> _lastHeading;
-
106
-
107 std::mutex _lastGPSMutex;
-
108 robot::types::DataPoint<navtypes::gpscoords_t> _lastGPS;
-
109
-
110 std::mutex _lastOrientationMutex;
-
111 robot::types::DataPoint<Eigen::Quaterniond> _lastOrientation;
-
112};
+
60 */
+
61 void handleIMURequest(const nlohmann::json& j);
+
62
+
63 /* @brief Checks if the ArduPilotProtocol is connected
+
64 *
+
65 * @return True if connected, false if not connected
+
66 */
+
67 bool isArduPilotConnected();
+
68
+
69 /* @brief Registers the protocol with the websocket server
+
70 *
+
71 * @param websocket server of which to add protocol
+
72 */
+
73 void initArduPilotServer(net::websocket::SingleClientWSServer& websocketServer);
+
74
+
75 /* @brief Connection handler for websocket server */
+
76 void clientConnected();
+
77
+
78 /* @brief Disconnect handler for websocket server */
+
79 void clientDisconnected();
+
80
+
81 std::mutex _connectionMutex;
+
82 bool _arduPilotProtocolConnected;
+
83
+
84 std::mutex _lastGPSMutex;
+
85 robot::types::DataPoint<navtypes::gpscoords_t> _lastGPS;
+
86
+
87 std::mutex _lastOrientationMutex;
+
88 robot::types::DataPoint<Eigen::Quaterniond> _lastOrientation;
+
89};
-
113
-
114} // namespace ardupilot
-
115} // namespace net
+
90
+
91} // namespace ardupilot
+
92} // namespace net
mutex
std::mutex
net::ardupilot::ArduPilotProtocol
Definition ArduPilotProtocol.h:15
diff --git a/classnet_1_1ardupilot_1_1ArduPilotProtocol-members.html b/classnet_1_1ardupilot_1_1ArduPilotProtocol-members.html index b0337881..d9c2ae7d 100644 --- a/classnet_1_1ardupilot_1_1ArduPilotProtocol-members.html +++ b/classnet_1_1ardupilot_1_1ArduPilotProtocol-members.html @@ -92,10 +92,9 @@ ArduPilotProtocol(net::websocket::SingleClientWSServer &websocketServer) (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol ArduPilotProtocol(const ArduPilotProtocol &other)=delete (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol getGPS() (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol - getHeading() (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol - getIMU() (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol - operator=(const ArduPilotProtocol &other)=delete (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol - ~ArduPilotProtocol() (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol + getIMU() (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol + operator=(const ArduPilotProtocol &other)=delete (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol + ~ArduPilotProtocol() (defined in net::ardupilot::ArduPilotProtocol)net::ardupilot::ArduPilotProtocol