ardupilot/libraries/APO/Navigator_Dcm.h

52 lines
1.5 KiB
C
Raw Normal View History

2011-12-06 19:56:16 -04:00
/*
2011-12-07 17:31:56 -04:00
* Navigator_Dcm.h
2011-12-06 19:56:16 -04:00
* Copyright (C) James Goppert/ Wenyao Xie 2011 james.goppert@gmail.com/ wenyaoxie@gmail.com
*
* This file 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 file 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/>.
*/
2011-12-07 17:31:56 -04:00
#ifndef Navigator_Dcm_H
#define Navigator_Dcm_H
2011-12-06 19:56:16 -04:00
#include "AP_Navigator.h"
#include <FastSerial.h>
#include "AP_ControllerBlock.h"
#include <AP_DCM.h>
class RangeFinder;
namespace apo {
2011-12-07 17:31:56 -04:00
class Navigator_Dcm: public AP_Navigator {
2011-12-06 19:56:16 -04:00
public:
2011-12-07 17:31:56 -04:00
Navigator_Dcm(AP_Board * board, const uint16_t key, const prog_char_t * name = NULL);
2011-12-06 19:56:16 -04:00
virtual void calibrate();
virtual void updateFast(float dt);
virtual void updateSlow(float dt);
void updateGpsLight(void);
private:
AP_DCM _dcm;
AP_Var_group _group;
uint16_t _imuOffsetAddress;
BlockLowPass _baroLowPass;
AP_Float _groundTemperature;
AP_Float _groundPressure;
RangeFinder * _rangeFinderDown;
};
} // namespace apo
2011-12-07 17:31:56 -04:00
#endif // Navigator_Dcm_H
2011-12-06 19:56:16 -04:00
// vim:ts=4:sw=4:expandtab