mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
TelemetrySettings: Commit a change Pip forgot :-p
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2210 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
fd10c6ffff
commit
771173a492
@ -42,17 +42,17 @@ TelemetrySettings::TelemetrySettings(): UAVDataObject(OBJID, ISSINGLEINST, ISSET
|
||||
{
|
||||
// Create fields
|
||||
QList<UAVObjectField*> fields;
|
||||
QStringList SpeedElemNames;
|
||||
SpeedElemNames.append("0");
|
||||
QStringList SpeedEnumOptions;
|
||||
SpeedEnumOptions.append("2400");
|
||||
SpeedEnumOptions.append("4800");
|
||||
SpeedEnumOptions.append("9600");
|
||||
SpeedEnumOptions.append("19200");
|
||||
SpeedEnumOptions.append("38400");
|
||||
SpeedEnumOptions.append("57600");
|
||||
SpeedEnumOptions.append("115200");
|
||||
fields.append( new UAVObjectField(QString("Speed"), QString(""), UAVObjectField::ENUM, SpeedElemNames, SpeedEnumOptions) );
|
||||
QStringList SpeedElemNames;
|
||||
SpeedElemNames.append("0");
|
||||
QStringList SpeedEnumOptions;
|
||||
SpeedEnumOptions.append("2400");
|
||||
SpeedEnumOptions.append("4800");
|
||||
SpeedEnumOptions.append("9600");
|
||||
SpeedEnumOptions.append("19200");
|
||||
SpeedEnumOptions.append("38400");
|
||||
SpeedEnumOptions.append("57600");
|
||||
SpeedEnumOptions.append("115200");
|
||||
fields.append( new UAVObjectField(QString("Speed"), QString(""), UAVObjectField::ENUM, SpeedElemNames, SpeedEnumOptions) );
|
||||
|
||||
// Initialize object
|
||||
initializeFields(fields, (quint8*)&data, NUMBYTES);
|
||||
@ -86,7 +86,7 @@ UAVObject::Metadata TelemetrySettings::getDefaultMetadata()
|
||||
*/
|
||||
void TelemetrySettings::setDefaultFieldValues()
|
||||
{
|
||||
data.Speed = 2;
|
||||
data.Speed = 5;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user