mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
FlightBatteryState object changed
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@786 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
23b2771602
commit
369657d52e
@ -33,7 +33,7 @@
|
||||
#define FLIGHTBATTERYSTATE_H
|
||||
|
||||
// Object constants
|
||||
#define FLIGHTBATTERYSTATE_OBJID 553396562U
|
||||
#define FLIGHTBATTERYSTATE_OBJID 4176558368U
|
||||
#define FLIGHTBATTERYSTATE_NAME "FlightBatteryState"
|
||||
#define FLIGHTBATTERYSTATE_METANAME "FlightBatteryStateMeta"
|
||||
#define FLIGHTBATTERYSTATE_ISSINGLEINST 1
|
||||
@ -57,20 +57,16 @@
|
||||
|
||||
// Object data
|
||||
typedef struct {
|
||||
uint32_t Tension;
|
||||
uint32_t Voltage;
|
||||
uint32_t Current;
|
||||
uint32_t ConsumedEnergy;
|
||||
uint32_t MinimumTension;
|
||||
uint32_t Capacity;
|
||||
|
||||
} __attribute__((packed)) FlightBatteryStateData;
|
||||
|
||||
// Field information
|
||||
// Field Tension information
|
||||
// Field Voltage information
|
||||
// Field Current information
|
||||
// Field ConsumedEnergy information
|
||||
// Field MinimumTension information
|
||||
// Field Capacity information
|
||||
|
||||
|
||||
// Generic interface functions
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "attitudeactual.h"
|
||||
#include "attitudedesired.h"
|
||||
#include "attitudesettings.h"
|
||||
#include "flightbatterystate.h"
|
||||
#include "exampleobject1.h"
|
||||
#include "exampleobject2.h"
|
||||
#include "examplesettings.h"
|
||||
@ -65,6 +66,7 @@ void UAVObjectsInitializeAll()
|
||||
AttitudeActualInitialize();
|
||||
AttitudeDesiredInitialize();
|
||||
AttitudeSettingsInitialize();
|
||||
FlightBatteryStateInitialize();
|
||||
ExampleObject1Initialize();
|
||||
ExampleObject2Initialize();
|
||||
ExampleSettingsInitialize();
|
||||
|
Loading…
Reference in New Issue
Block a user