Ignore:
Timestamp:
Sep 21, 2016, 3:07:48 PM (5 years ago)
Author:
Thomas Fuhrmann
Message:

Add lat, lon and alt fields + adapt processing of MissionSend?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mavlink/tools/Controller/Mavlink/src/GuiInterface.cpp

    r79 r81  
    7474  // comboCmd->AddItem("RETURN");
    7575  // comboCmd->AddItem("JUMP");
    76   param1Field = new DoubleSpinBox(addCmdGroupBox->NewRow(), "Param1",
    77                                 -90, 90, 0.5, 1, 3);
    78   param2Field = new DoubleSpinBox(addCmdGroupBox->NewRow(), "Param2",
    79                                 -90, 90, 0.5, 1, 3);
    80   param3Field = new DoubleSpinBox(addCmdGroupBox->NewRow(), "Param3",
    81                                 -90, 90, 0.5, 1, 3);
     76  param1Field = new DoubleSpinBox(addCmdGroupBox->NewRow(), "Param1", -90, 90, 0.5, 1, 0);
     77  latitudeField = new DoubleSpinBox(addCmdGroupBox->LastRowLastCol(), "Longitude", -90, 90, 0.5, 1, 1.5);
     78  param2Field = new DoubleSpinBox(addCmdGroupBox->NewRow(), "Param2", -90, 90, 0.5, 1, 0);
     79  longitudeField = new DoubleSpinBox(addCmdGroupBox->LastRowLastCol(), "Latitude", -90, 90, 0.5, 1, -1.5);
     80  param3Field = new DoubleSpinBox(addCmdGroupBox->NewRow(), "Param3", -90, 90, 0.5, 1, 0);
     81  altitudeField = new DoubleSpinBox(addCmdGroupBox->LastRowLastCol(), "Altitude", -90, 90, 0.5, 1, 2);
    8282  btnAddMissionCmd = new PushButton(addCmdGroupBox->NewRow(), "Add mission cmd");
    8383  btnDelMissionCmd = new PushButton(addCmdGroupBox->LastRowLastCol(), "Del mission cmd");
     
    145145  stringStream.precision(1);
    146146  stringStream << fixed;
    147   stringStream << commandsAvailable[comboCmd->CurrentIndex()] << "|" << param1Field->Value() << "|" << param2Field->Value() << "|" << param3Field->Value();
     147  stringStream << commandsAvailable[comboCmd->CurrentIndex()] << "|" << param1Field->Value() << "|" << param2Field->Value() \
     148               << "|" << param3Field->Value() << "|" << latitudeField->Value() << "|" << longitudeField->Value() << "|" << altitudeField->Value();
    148149  return stringStream.str();
    149150}
Note: See TracChangeset for help on using the changeset viewer.