80 } __attribute__((packed));
101 #define NAVDATA_PACKET_SIZE 60
102 #define NAVDATA_START_BYTE 0x3A
103 #define NAVDATA_CMD_START 0x01
104 #define NAVDATA_CMD_STOP 0x02
105 #define NAVDATA_CMD_BARO_CALIB 0x17
107 #define ARDRONE_GPIO_PORT 0x32524
108 #define ARDRONE_GPIO_PIN_NAVDATA 177
bool_t baro_calibrated
Whenever the baro is calibrated.
bool_t baro_available
Whenever the baro is available.
struct bmp180_calib_t bmp180_calib
BMP180 calibration receieved from navboard.
int16_t navdata_height(void)
struct navdata_measure_t measure
Main navdata packet receieved from navboard.
bool_t imu_lost
Whenever the imu is lost.
uint16_t temperature_gyro
uint16_t temperature_pressure
Main navdata structure from the navdata board This is received from the navdata board at ~200Hz...
ssize_t full_write(int fd, const uint8_t *buf, size_t count)
Write to fd even while being interrupted.
bool_t is_initialized
Check if the navdata board is initialized.
uint16_t us_association_echo
ssize_t full_read(int fd, uint8_t *buf, size_t count)
Read from fd even while being interrupted.
int fd
The navdata file pointer.
uint16_t us_distance_echo
bool_t navdata_init(void)
Initialize the navdata board.
void navdata_update(void)
Update the navdata (event loop)
uint16_t last_packet_number