gusimplewhiteboard
wb_apm_interface.h
Go to the documentation of this file.
1
9#ifndef wb_apm_interface_h
10#define wb_apm_interface_h
11
12#include <gu_util.h>
13
16{
17 Quad = 0,
20};
21
23 //Doxy is warning about undocumented functions as a result of our macros and the fact that they're used in this union. This will disable doxy from parsing this section, which means no warnings but also no generated documentation for this section. The other option is to redefine the macros locally to fix the naming problem. - Carl.
24
28union apm_data
29{
30 struct {
32 PROPERTY(uint8_t, thrust)
34 PROPERTY(uint8_t, pad_)
36 PROPERTY(int16_t, pitch)
38 PROPERTY(int16_t, roll)
40 PROPERTY(int16_t, yaw)
41 } quad;
42
43 struct {
45 PROPERTY(uint8_t, thrust)
46 } plane;
47
49 //unsigned int _padding : 14;
50 //} motor; ///< motor object
51};
53
58{
60 PROPERTY(enum apm_mode, mode)
62 PROPERTY(union apm_data, data)
63
64#ifdef __cplusplus
69 {
70 memset(this, 0, sizeof(*this));
71 }
72#endif
73};
74
75#endif //wb_apm_interface_h
Interface for talking with an APM.
PROPERTY(enum apm_mode, mode) PROPERTY(union apm_data
what type of machine
data wb_apm_interface()
stuct constructor
apm_mode
/file wb_apm_interface.h
@ Quad
@ NUMBER_OF_MODES
@ Plane