2013-10-13 04:14:13 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
|
|
|
|
|
|
#ifndef _DEFINES_H
|
|
|
|
#define _DEFINES_H
|
|
|
|
|
|
|
|
// mark a function as not to be inlined
|
|
|
|
#define NOINLINE __attribute__((noinline))
|
|
|
|
|
2014-03-02 03:00:37 -04:00
|
|
|
|
|
|
|
// Command/Waypoint/Location Options Bitmask
|
|
|
|
//--------------------
|
|
|
|
#define MASK_OPTIONS_RELATIVE_ALT (1<<0) // 1 = Relative
|
|
|
|
// altitude
|
|
|
|
|
2014-03-06 18:13:53 -04:00
|
|
|
// Controller modes
|
|
|
|
// ----------------
|
|
|
|
|
|
|
|
enum ControlMode {
|
|
|
|
MANUAL=0,
|
2014-03-22 05:08:17 -03:00
|
|
|
STOP=1,
|
2014-04-09 02:27:56 -03:00
|
|
|
SCAN=2,
|
2014-03-06 18:13:53 -04:00
|
|
|
AUTO=10,
|
|
|
|
INITIALISING=16
|
|
|
|
};
|
|
|
|
|
2014-07-23 05:41:25 -03:00
|
|
|
enum ServoType {
|
|
|
|
SERVO_TYPE_POSITION=0,
|
|
|
|
SERVO_TYPE_ONOFF=1
|
|
|
|
};
|
|
|
|
|
2013-10-13 04:14:13 -03:00
|
|
|
#endif // _DEFINES_H
|
2014-03-02 03:00:37 -04:00
|
|
|
|