Commit f4c240a1 authored by LM's avatar LM

Fixed earlier merge error, linechart operational again

parent cbc8dde7
...@@ -108,19 +108,19 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) ...@@ -108,19 +108,19 @@ void PxQuadMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit valueChanged(uasId, "vis. z", "m", pos.z, time); emit valueChanged(uasId, "vis. z", "m", pos.z, time);
} }
break; break;
case MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE: { // case MAVLINK_MSG_ID_GLOBAL_VISION_POSITION_ESTIMATE: {
mavlink_global_vision_position_estimate_t pos; // mavlink_global_vision_position_estimate_t pos;
mavlink_msg_global_vision_position_estimate_decode(&message, &pos); // mavlink_msg_global_vision_position_estimate_decode(&message, &pos);
quint64 time = getUnixTime(pos.usec); // quint64 time = getUnixTime(pos.usec);
//emit valueChanged(uasId, "vis. time", pos.usec, time); // //emit valueChanged(uasId, "vis. time", pos.usec, time);
emit valueChanged(uasId, "glob. vis. roll", "rad", pos.roll, time); // emit valueChanged(uasId, "glob. vis. roll", "rad", pos.roll, time);
emit valueChanged(uasId, "glob. vis. pitch", "rad", pos.pitch, time); // emit valueChanged(uasId, "glob. vis. pitch", "rad", pos.pitch, time);
emit valueChanged(uasId, "glob. vis. yaw", "rad", pos.yaw, time); // emit valueChanged(uasId, "glob. vis. yaw", "rad", pos.yaw, time);
emit valueChanged(uasId, "glob. vis. x", "m", pos.x, time); // emit valueChanged(uasId, "glob. vis. x", "m", pos.x, time);
emit valueChanged(uasId, "glob. vis. y", "m", pos.y, time); // emit valueChanged(uasId, "glob. vis. y", "m", pos.y, time);
emit valueChanged(uasId, "glob. vis. z", "m", pos.z, time); // emit valueChanged(uasId, "glob. vis. z", "m", pos.z, time);
} // }
break; // break;
case MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE: { case MAVLINK_MSG_ID_VICON_POSITION_ESTIMATE: {
mavlink_vicon_position_estimate_t pos; mavlink_vicon_position_estimate_t pos;
mavlink_msg_vicon_position_estimate_decode(&message, &pos); mavlink_msg_vicon_position_estimate_decode(&message, &pos);
......
...@@ -92,7 +92,7 @@ void UASWaypointManager::handleLocalPositionChanged(UASInterface* mav, double x, ...@@ -92,7 +92,7 @@ void UASWaypointManager::handleLocalPositionChanged(UASInterface* mav, double x,
{ {
Q_UNUSED(mav); Q_UNUSED(mav);
Q_UNUSED(time); Q_UNUSED(time);
if (waypoints.count() > 0 && currentWaypoint && (currentWaypoint->getFrame() == MAV_FRAME_LOCAL || currentWaypoint->getFrame() == MAV_FRAME_LOCAL_ENU)) if (waypoints.count() > 0 && currentWaypoint && (currentWaypoint->getFrame() == MAV_FRAME_LOCAL_NED || currentWaypoint->getFrame() == MAV_FRAME_LOCAL_ENU))
{ {
double xdiff = x-currentWaypoint->getX(); double xdiff = x-currentWaypoint->getX();
double ydiff = y-currentWaypoint->getY(); double ydiff = y-currentWaypoint->getY();
......
...@@ -1190,7 +1190,7 @@ void MainWindow::UASCreated(UASInterface* uas) ...@@ -1190,7 +1190,7 @@ void MainWindow::UASCreated(UASInterface* uas)
{ {
// Center widgets // Center widgets
linechartWidget = new Linecharts(this); linechartWidget = new Linecharts(this);
//linechartWidget FIXME linechartWidget->addSource(mavlinkDecoder);
addCentralWidget(linechartWidget, tr("Realtime Plot")); addCentralWidget(linechartWidget, tr("Realtime Plot"));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment