1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

New FlightBatteryState UavObject

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@783 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
fredericg 2010-06-16 11:51:55 +00:00 committed by fredericg
parent c86c875572
commit 176c8e5d92
3 changed files with 21 additions and 2 deletions

View File

@ -30,7 +30,8 @@ HEADERS += uavobjects_global.h \
actuatorsettings.h \
actuatordesired.h \
actuatorcommand.h \
positionactual.h
positionactual.h \
flightbatterystate.h
SOURCES += uavobject.cpp \
uavmetaobject.cpp \
uavobjectmanager.cpp \
@ -58,6 +59,7 @@ SOURCES += uavobject.cpp \
actuatorsettings.cpp \
actuatordesired.cpp \
actuatorcommand.cpp \
positionactual.cpp
positionactual.cpp \
flightbatterystate.cpp
DEFINES += UAVOBJECTS_LIBRARY
OTHER_FILES += UAVObjects.pluginspec

View File

@ -37,9 +37,11 @@
#include "attitudeactual.h"
#include "attitudedesired.h"
#include "attitudesettings.h"
#include "flightbatterystate.h"
#include "exampleobject1.h"
#include "exampleobject2.h"
#include "examplesettings.h"
#include "flightbatterystate.h"
#include "flighttelemetrystats.h"
#include "gcstelemetrystats.h"
#include "manualcontrolcommand.h"
@ -66,9 +68,11 @@ void UAVObjectsInitialize(UAVObjectManager* objMngr)
objMngr->registerObject( new AttitudeActual() );
objMngr->registerObject( new AttitudeDesired() );
objMngr->registerObject( new AttitudeSettings() );
objMngr->registerObject( new FlightBatteryState() );
objMngr->registerObject( new ExampleObject1() );
objMngr->registerObject( new ExampleObject2() );
objMngr->registerObject( new ExampleSettings() );
objMngr->registerObject( new FlightBatteryState() );
objMngr->registerObject( new FlightTelemetryStats() );
objMngr->registerObject( new GCSTelemetryStats() );
objMngr->registerObject( new ManualControlCommand() );

View File

@ -0,0 +1,13 @@
<xml>
<object name="FlightBatteryState" singleinstance="true" settings="false">
<field name="Voltage" units="mV" type="uint32" elements="1"/>
<field name="Current" units="mA" type="uint32" elements="1"/>
<field name="ConsumedEnergy" units="mAh" type="uint32" elements="1"/>
<access gcs="readonly" flight="readwrite"/>
<telemetrygcs acked="false" updatemode="manual" period="0"/>
<telemetryflight acked="false" updatemode="periodic" period="1000"/>
<logging updatemode="never" period="0"/>
</object>
</xml>