You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
639 B
33 lines
639 B
11 years ago
|
// -*- 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))
|
||
|
|
||
11 years ago
|
|
||
|
// Command/Waypoint/Location Options Bitmask
|
||
|
//--------------------
|
||
|
#define MASK_OPTIONS_RELATIVE_ALT (1<<0) // 1 = Relative
|
||
|
// altitude
|
||
|
|
||
11 years ago
|
// Controller modes
|
||
|
// ----------------
|
||
|
|
||
|
enum ControlMode {
|
||
|
MANUAL=0,
|
||
11 years ago
|
STOP=1,
|
||
11 years ago
|
SCAN=2,
|
||
11 years ago
|
AUTO=10,
|
||
|
INITIALISING=16
|
||
|
};
|
||
|
|
||
11 years ago
|
enum ServoType {
|
||
|
SERVO_TYPE_POSITION=0,
|
||
|
SERVO_TYPE_ONOFF=1
|
||
|
};
|
||
|
|
||
11 years ago
|
#endif // _DEFINES_H
|
||
11 years ago
|
|