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:
parent
c86c875572
commit
176c8e5d92
@ -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
|
||||
|
@ -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() );
|
||||
|
13
ground/src/shared/uavobjectdefinition/flightbatterystate.xml
Normal file
13
ground/src/shared/uavobjectdefinition/flightbatterystate.xml
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user