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

Update the object template to be more consistent with ground code

This commit is contained in:
James Cotton 2011-03-01 22:27:58 -06:00
parent eed5705a6c
commit 1810fb61a0

View File

@ -29,30 +29,31 @@
package org.openpilot.uavtalk.uavobjects; package org.openpilot.uavtalk.uavobjects;
import org.openpilot.uavtalk.UAVObject; import org.openpilot.uavtalk.UAVObject;
import org.openpilot.uavtalk.UAVObjectMetaData; import org.openpilot.uavtalk.UAVDataObject;
import org.openpilot.uavtalk.UAVObjectFieldDescription; import org.openpilot.uavtalk.UAVMetaObject;
/** /**
$(DESCRIPTION) $(DESCRIPTION)
generated from $(XMLFILE) generated from $(XMLFILE)
**/ **/
public class $(NAME) extends UAVObject{ public class $(NAME) extends UAVDataObject{
$(FIELDSINIT) $(FIELDSINIT)
public void setGeneratedMetaData() { public void setGeneratedMetaData() {
getMetaData().gcsAccess = UAVObjectMetaData.$(GCSACCESS); getMetaData().gcsAccess = UAVMetaObject.$(GCSACCESS);
getMetaData().gcsTelemetryAcked = UAVObjectMetaData.$(GCSTELEM_ACKEDTF); getMetaData().gcsTelemetryAcked = UAVMetaObject.$(GCSTELEM_ACKEDTF);
getMetaData().gcsTelemetryUpdateMode = UAVObjectMetaData.$(GCSTELEM_UPDATEMODE); getMetaData().gcsTelemetryUpdateMode = UAVMetaObject.$(GCSTELEM_UPDATEMODE);
getMetaData().gcsTelemetryUpdatePeriod = $(GCSTELEM_UPDATEPERIOD); getMetaData().gcsTelemetryUpdatePeriod = $(GCSTELEM_UPDATEPERIOD);
getMetaData().flightAccess = UAVObjectMetaData.$(FLIGHTACCESS); getMetaData().flightAccess = UAVMetaObject.$(FLIGHTACCESS);
getMetaData().flightTelemetryAcked = UAVObjectMetaData.$(FLIGHTTELEM_ACKEDTF); getMetaData().flightTelemetryAcked = UAVMetaObject.$(FLIGHTTELEM_ACKEDTF);
getMetaData().flightTelemetryUpdateMode = UAVObjectMetaData.$(FLIGHTTELEM_UPDATEMODE); getMetaData().flightTelemetryUpdateMode = UAVMetaObject.$(FLIGHTTELEM_UPDATEMODE);
getMetaData().flightTelemetryUpdatePeriod = $(FLIGHTTELEM_UPDATEPERIOD); getMetaData().flightTelemetryUpdatePeriod = $(FLIGHTTELEM_UPDATEPERIOD);
getMetaData().loggingUpdateMode = UAVObjectMetaData.$(LOGGING_UPDATEMODE); getMetaData().loggingUpdateMode = UAVMetaObject.$(LOGGING_UPDATEMODE);
getMetaData().loggingUpdatePeriod = $(LOGGING_UPDATEPERIOD); getMetaData().loggingUpdatePeriod = $(LOGGING_UPDATEPERIOD);
} }
@ -65,7 +66,7 @@ $(FIELDSINIT)
return "$(NAME)"; return "$(NAME)";
} }
public String getObjDescription() { public String getDescription() {
return "$(DESCRIPTION)"; return "$(DESCRIPTION)";
} }