Skip to content

Commit

Permalink
Field course in msg QUIVER removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusBV20 committed Jun 25, 2022
1 parent 4b9c282 commit 1770d5a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/widgets/map/graphics_objects/graphics_quiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void GraphicsQuiver::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
{
(void)option;
(void)widget;
painter->setPen(QPen(Qt::black, 3));
painter->setPen(QPen(Qt::red, 3));

painter->drawLine(0, 0, 0, -size);

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/map/map_items/quiver_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ QuiverItem::QuiverItem(Point2DLatLon pos, Point2DLatLon vec, double neutral_scal
z_value = z_value_unhighlighted;

// TODO: "size" y "course" vienen determinados por "pos" y "vec".
size = 8;
size = 100;
course = 10;

graphics_quiver = new GraphicsQuiver(size, palette, this);
Expand Down
2 changes: 0 additions & 2 deletions src/widgets/map/mapwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,15 +1113,13 @@ void MapWidget::onQuiver(QString sender, pprzlink::Message msg) {
uint8_t status;
int32_t lat, lon;
int32_t vlat, vlon;
float course;

msg.getField("id", id);
msg.getField("status", status);
msg.getField("lat", lat);
msg.getField("lon", lon);
msg.getField("vlat", vlat);
msg.getField("vlon", vlon);
msg.getField("course", course);

if(id == "clean") {
for (MapItem* quiver : quivers){
Expand Down

0 comments on commit 1770d5a

Please sign in to comment.