ardupilot/libraries/AP_WindVane/AP_WindVane_Backend.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.2 KiB
C
Raw Normal View History

2019-05-09 21:14:18 -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/>.
*/
#pragma once
#include "AP_WindVane.h"
class AP_WindVane_Backend
{
public:
// constructor. This incorporates initialization as well.
AP_WindVane_Backend(AP_WindVane &frontend);
// we declare a virtual destructor so that WindVane drivers can
// override with a custom destructor if need be
virtual ~AP_WindVane_Backend() {}
2019-05-28 18:31:34 -03:00
// initialization
virtual void init(const AP_SerialManager& serial_manager) {};
2019-05-09 21:14:18 -03:00
// update the state structure
virtual void update_speed() {};
virtual void update_direction() {};
virtual void calibrate();
protected:
AP_WindVane &_frontend;
};