APM:Copter
Copter.cpp
Go to the documentation of this file.
1 /*
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License as published by
4  the Free Software Foundation, either version 3 of the License, or
5  (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program. If not, see <http://www.gnu.org/licenses/>.
14  */
15 #include "Copter.h"
16 
17 #define FORCE_VERSION_H_INCLUDE
18 #include "version.h"
19 #undef FORCE_VERSION_H_INCLUDE
20 
22 
23 /*
24  constructor for main Copter class
25  */
27  : DataFlash(fwver.fw_string, g.log_bitmask),
28  flight_modes(&g.flight_mode1),
29  control_mode(STABILIZE),
30  scaleLongDown(1),
31  simple_cos_yaw(1.0f),
32  super_simple_cos_yaw(1.0),
33  land_accel_ef_filter(LAND_DETECTOR_ACCEL_LPF_CUTOFF),
34  rc_throttle_control_in_filter(1.0f),
35  inertial_nav(ahrs),
36  param_loader(var_info),
37  flightmode(&mode_stabilize)
38 {
39  // init sensor error logging flags
40  sensor_health.baro = true;
41  sensor_health.compass = true;
42 }
43 
struct Copter::@3 sensor_health
AP_AHRS_NavEKF & ahrs
const AP_Param::Info var_info[]
Definition: Copter.h:180
const AP_FWVersion fwver
Copter copter
Definition: Copter.cpp:44
#define LAND_DETECTOR_ACCEL_LPF_CUTOFF
Definition: config.h:432
#define f(i)
Copter(void)
Definition: Copter.cpp:26
const AP_HAL::HAL & hal
Definition: Copter.cpp:21
const HAL & get_HAL()
AP_Int32 log_bitmask
DataFlash_Class DataFlash