APM:Copter
version.cpp
Go to the documentation of this file.
1 /*
2  * This file is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by the
4  * Free Software Foundation, either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This file is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along
13  * with this program. If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #include "Copter.h"
17 
18 #define FORCE_VERSION_H_INCLUDE
19 #include "version.h"
20 #undef FORCE_VERSION_H_INCLUDE
21 
22 #include <AP_Common/AP_FWVersion.h>
23 
25  .major = FW_MAJOR,
26  .minor = FW_MINOR,
27  .patch = FW_PATCH,
28  .fw_type = FW_TYPE,
29 #ifndef GIT_VERSION
30  .fw_string = THISFIRMWARE,
31 #else
32  .fw_string = THISFIRMWARE " (" GIT_VERSION ")",
33  .fw_hash_str = GIT_VERSION,
34 #endif
35 #ifdef PX4_GIT_VERSION
36  .middleware_hash_str = PX4_GIT_VERSION,
37 #endif
38 #ifdef NUTTX_GIT_VERSION
39  .os_hash_str = NUTTX_GIT_VERSION,
40 #endif
41 };
#define FW_PATCH
Definition: version.h:16
#define FW_TYPE
Definition: version.h:17
uint8_t major
static const AP_FWVersion fwver
Definition: Copter.h:202
#define FW_MAJOR
Definition: version.h:14
#define FW_MINOR
Definition: version.h:15
#define THISFIRMWARE
Definition: version.h:9