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

Forgot to initialize the fields for metadata

This commit is contained in:
James Cotton 2012-08-02 13:08:47 -05:00
parent 62bb4601c5
commit 4233c7da0d

View File

@ -27,7 +27,8 @@ public class UAVMetaObject extends UAVObject {
modesBitField.add("FlightUpdateOnChange");
modesBitField.add("GCSUpdatePeriodic");
modesBitField.add("GCSUpdateOnChange");
List<UAVObjectField> fields = new ArrayList<UAVObjectField>();
fields.add( new UAVObjectField("Modes", "", UAVObjectField.FieldType.BITFIELD, 1, modesBitField) );
fields.add( new UAVObjectField("Flight Telemetry Update Period", "ms", UAVObjectField.FieldType.UINT16, 1, null) );
fields.add( new UAVObjectField("GCS Telemetry Update Period", "ms", UAVObjectField.FieldType.UINT16, 1, null) );