dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_px4flow_priv.h
Go to the documentation of this file.
1 
15 #ifndef PIOS_PX4FLOW_H
16 #define PIOS_PX4FLOW_H
17 
18 #include <stdint.h>
19 #include <stdbool.h>
20 
21 /* PX4FLOW Addresses */
22 #define PIOS_PX4FLOW_I2C_7_BIT_ADDR 0x42
23 #define PIOS_PX4FLOW_FRAMECOUNTER_LSB 0x00
24 #define PIOS_PX4FLOW_FRAMECOUNTER_SINCE_LAST_I2C_READING_LSB 0x16
25 
26 struct Rotation {
27  // Units are [deg*100]
28  int16_t roll_D100;
29  int16_t pitch_D100;
30  int16_t yaw_D100;
31 };
32 
35 };
36 
38  int16_t x_dot;
39  int16_t y_dot;
40  int16_t x;
41  int16_t y;
42 };
43 
44 /* Public Functions */
45 extern int32_t PIOS_PX4Flow_Init(const struct pios_px4flow_cfg *cfg, pios_i2c_t i2c_id);
46 extern int32_t PIOS_PX4Flow_Test(void);
47 extern int32_t PIOS_PX4Flow_SetRotation(const struct Rotation rotation);
48 extern bool PIOS_PX4Flow_IRQHandler();
49 #endif /* PIOS_PX4FLOW_H */
50 
bool PIOS_PX4Flow_IRQHandler()
static struct flyingpicmd_cfg_fa cfg
Definition: main.c:49
int16_t pitch_D100
int16_t roll_D100
int32_t PIOS_PX4Flow_SetRotation(const struct Rotation rotation)
struct pios_i2c_adapter * pios_i2c_t
Definition: pios_i2c.h:48
int16_t yaw_D100
struct Rotation rotation
int32_t PIOS_PX4Flow_Init(const struct pios_px4flow_cfg *cfg, pios_i2c_t i2c_id)
int32_t PIOS_PX4Flow_Test(void)