OP-1156 fix path logic to not deviate from correct altitude too much
[librepilot.git] / flight / modules / FlightPlan / lib / uavobject.pyt.template
blobff6bab315df1dd912ed1207be22c7bbeaa81f9bb
1 ##
2 ##############################################################################
4 # @file       $(NAMELC).py
5 # @author     The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
6 # @brief      Implementation of the $(NAME) object. This file has been
7 #             automatically generated by the UAVObjectGenerator. For use with
8 #             the PyMite VM of the FlightPlan module.
10 # @note       Object definition file: $(XMLFILE).
11 #             This is an automatically generated file.
12 #             DO NOT modify manually.
14 # @see        The GNU Public License (GPL) Version 3
16 #############################################################################/
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 3 of the License, or
21 # (at your option) any later version.
23 # This program is distributed in the hope that it will be useful, but
24 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
25 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 # for more details.
28 # You should have received a copy of the GNU General Public License along
29 # with this program; if not, write to the Free Software Foundation, Inc.,
30 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 from uavobject import *
35 $(DATAFIELDS)
37 # Object $(NAME) definition
38 class $(NAME)(UAVObject):
39     # Object constants
40     OBJID = $(UOBJID)
42     # Constructor
43     def __init__(self):
44         UAVObject.__init__(self, $(NAME).OBJID)
46         # Create object fields
47 $(DATAFIELDINIT)
48         # Read field data
49         self.read()
50         self.metadata.read()