mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
b084ea7ea1
Warning: The memory utilization when importing objects is unacceptably high making it unusable in the flight code at this point. It can be however used with the SITL simulator. Some more investigation is needed to understand why several kb of memory are used each time a module is imported (even before any functions are called or objects from the module are created). git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2938 ebee16cc-31ac-478f-84a7-5cbb03baadba
61 lines
1.7 KiB
Python
61 lines
1.7 KiB
Python
##
|
|
##############################################################################
|
|
#
|
|
# @file $(NAMELC).py
|
|
# @author 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 uavobject import *
|
|
|
|
$(DATAFIELDS)
|
|
|
|
# Object $(NAME) definition
|
|
class $(NAME)(UAVObject):
|
|
# Object constants
|
|
OBJID = $(UOBJID)
|
|
|
|
# Constructor
|
|
def __init__(self):
|
|
UAVObject.__init__(self, $(NAME).OBJID)
|
|
|
|
# Create object fields
|
|
$(DATAFIELDINIT)
|
|
# Read field data
|
|
self.read()
|
|
self.metadata.read()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|