Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1702 - 1
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
2
/*
3
 * rotations.h
4
 * Copyright (C) Andrew Tridgell 2012
5
 *
6
 * This file is free software: you can redistribute it and/or modify it
7
 * under the terms of the GNU General Public License as published by the
8
 * Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This file is distributed in the hope that it will be useful, but
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 * See the GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License along
17
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
 
20
 
21
// these rotations form a full set - every rotation in the following
22
// list when combined with another in the list forms an entry which is
23
// also in the list. This is an important property. Please run the
24
// rotations test suite if you add to the list.
25
 
26
// these rotation values are stored to EEPROM, so be careful not to
27
// change the numbering of any existing entry when adding a new entry.
28
enum Rotation {
29
        ROTATION_NONE = 0,
30
        ROTATION_YAW_45,
31
        ROTATION_YAW_90,
32
        ROTATION_YAW_135,
33
        ROTATION_YAW_180,
34
        ROTATION_YAW_225,
35
        ROTATION_YAW_270,
36
        ROTATION_YAW_315,
37
        ROTATION_ROLL_180,
38
        ROTATION_ROLL_180_YAW_45,
39
        ROTATION_ROLL_180_YAW_90,
40
        ROTATION_ROLL_180_YAW_135,
41
        ROTATION_PITCH_180,
42
        ROTATION_ROLL_180_YAW_225,
43
        ROTATION_ROLL_180_YAW_270,
44
        ROTATION_ROLL_180_YAW_315,
45
    ROTATION_MAX
46
};