ardupilot/APMrover2/Rover.cpp

39 lines
1.1 KiB
C++
Raw Normal View History

2015-05-12 04:00:25 -03:00
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
main Rover class, containing all vehicle specific state
*/
2015-05-13 00:16:45 -03:00
#include "Rover.h"
#define FORCE_VERSION_H_INCLUDE
#include "version.h"
#undef FORCE_VERSION_H_INCLUDE
2015-05-13 00:16:45 -03:00
2015-05-12 04:00:25 -03:00
Rover::Rover(void) :
param_loader(var_info),
2016-10-28 13:57:14 -03:00
channel_steer(nullptr),
channel_throttle(nullptr),
channel_aux(nullptr),
channel_lateral(nullptr),
2018-06-13 08:15:29 -03:00
DataFlash{g.log_bitmask},
2015-05-12 04:00:25 -03:00
modes(&g.mode1),
nav_controller(&L1_controller),
2017-07-18 23:19:08 -03:00
control_mode(&mode_initializing),
home(ahrs.get_home()),
2019-01-06 14:21:57 -04:00
G_Dt(0.02f)
2015-05-12 04:00:25 -03:00
{
}