This brings in an implementation of some general matrix manipulation routines, not all of which are used at teh moment. Output the DCM on the UART at 50Hz for the host to display it usefully.
24 lines
462 B
C
24 lines
462 B
C
#ifndef __WMP_H
|
|
#define __WMP_H
|
|
|
|
#include "types.h"
|
|
|
|
extern unsigned int wmp_yaw;
|
|
extern unsigned int wmp_pitch;
|
|
extern unsigned int wmp_roll;
|
|
|
|
extern unsigned char wmp_calibration_data[];
|
|
|
|
extern bool wmp_yaw_fast;
|
|
extern bool wmp_pitch_fast;
|
|
extern bool wmp_roll_fast;
|
|
|
|
bool wmp_init(void);
|
|
bool wmp_sample(void);
|
|
bool wmp_read_calibration_data(void);
|
|
bool wmp_start_sample(void);
|
|
void wmp_event_handler(void);
|
|
void wmp_start_zero(void);
|
|
|
|
#endif /* __WMP_H */
|