Subversion Repositories FlightCtrl

Rev

Rev 2048 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2048 - 1
#ifndef _COMPASS_H
2
#define _COMPASSRC_H
3
 
4
#include <inttypes.h>
5
 
2052 - 6
// 4 modes of control (like with the simple height controller):
7
// 0) Off: Normal yaw control, supported by compass (anti drift) if present and enabled
8
// 1) Heading is captured at takeoff, and held there (plus / minus bending via remote)
9
// 2) A variable controls the heading (plus / minus bending via remote) (not implemented, is it useful at all?)
10
// 3) Navigation controls the heading (plus / minus bending via remote)
2048 - 11
 
2052 - 12
#define COMPASS_MODE_OFF            0
13
#define COMPASS_MODE_TAKEOFF        1
14
//#define COMPASS_MODE_RCVARIABLE     2
15
#define COMPASS_MODE_NAVIGATION     3
16
 
17
// public read write.
18
extern int32_t navigationTargetHeading;
19
 
20
void compass_setTakeoffHeading(int32_t heading);
2048 - 21
void CC_periodicTaskAndPRTY(int16_t* PRTY);
22
 
23
#endif