2 ******************************************************************************
4 * @file PathFollowerControl.c
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2015.
6 * @brief Controller interface class implementation
7 * @see The GNU Public License (GPL) Version 3
9 *****************************************************************************/
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * You should have received a copy of the GNU General Public License along
22 * with this program; if not, write to the Free Software Foundation, Inc.,
23 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include <openpilot.h>
28 #include <flightstatus.h>
29 #include <pathstatus.h>
30 #include <pathdesired.h>
34 #include "pathfollowercontrol.h"
36 PathDesiredData
*PathFollowerControl::pathDesired
= 0;
37 FlightStatusData
*PathFollowerControl::flightStatus
= 0;
38 PathStatusData
*PathFollowerControl::pathStatus
= 0;
40 int32_t PathFollowerControl::Initialize(PathDesiredData
*ptr_pathDesired
,
41 FlightStatusData
*ptr_flightStatus
,
42 PathStatusData
*ptr_pathStatus
)
44 PIOS_Assert(ptr_pathDesired
);
45 PIOS_Assert(ptr_flightStatus
);
46 PIOS_Assert(ptr_pathStatus
);
48 pathDesired
= ptr_pathDesired
;
49 flightStatus
= ptr_flightStatus
;
50 pathStatus
= ptr_pathStatus
;