1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-12 20:08:48 +01:00
LibrePilot/flight/modules/FlightPlan/lib/uavobject.pyt.template

52 lines
1.8 KiB
Plaintext
Raw Normal View History

##
##############################################################################
#
# @file $(NAMELC).py
2017-02-21 00:45:39 +01:00
# @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2017.
# The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
# @brief Implementation of the $(NAME) object. This file has been
# automatically generated by the UAVObjectGenerator. For use with
# the PyMite VM of the FlightPlan module.
#
# @note Object definition file: $(XMLFILE).
# This is an automatically generated file.
# DO NOT modify manually.
#
# @see The GNU Public License (GPL) Version 3
#
#############################################################################/
#
# 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, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
from librepilot.uavtalk.uavobject import *
$(DATAFIELDS)
# Object $(NAME) definition
class $(NAME)(UAVObject):
# Object constants
OBJID = $(OBJIDHEX)
# Constructor
def __init__(self):
UAVObject.__init__(self, $(NAME).OBJID)
# Create object fields
$(DATAFIELDINIT)
# Read field data
self.read()
self.metadata.read()