Skip to content

Commit 112f911

Browse files
committed
CleanUp, Color fixed
1 parent d92c389 commit 112f911

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

MAVGCL/lib/mavcomm.jar

-155 Bytes
Binary file not shown.

MAVGCL/src/com/comino/flight/ui/widgets/charts/annotations/XYSlamAnnotation.java

+2-8
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,16 @@ public class XYSlamAnnotation implements XYAnnotation {
6262
private Circle projected = null;
6363

6464
private AnalysisDataModel model = null;
65-
private float scale;
6665

6766
public XYSlamAnnotation(Color color) {
68-
this.scale = 1f;
6967

7068
this.pane = new Pane();
7169
this.pane.setMaxWidth(999); this.pane.setMaxHeight(999);
7270
this.pane.setLayoutX(0); this.pane.setLayoutY(0);
7371

7472
plan_rotate = Rotate.rotate(0, 0, 0);
7573
plan_dir = new Polygon( -4,30, -1,30, -1,0, 1,0, 1,30, 4,30, 0,35);
76-
plan_dir.setFill(Color.IVORY.darker());
74+
plan_dir.setFill(Color.rgb(230, 230, 20, 0.6));
7775
plan_dir.getTransforms().add(plan_rotate);
7876
plan_dir.setStrokeType(StrokeType.INSIDE);
7977
plan_dir.setVisible(false);
@@ -125,7 +123,7 @@ public void layoutAnnotation(ValueAxis xAxis, ValueAxis yAxis) {
125123

126124

127125
if(model.getValue("SLAMSPD") != 0) {
128-
setArrowLength(plan_dir,(float)model.getValue("SLAMSPD")*100);
126+
setArrowLength(plan_dir,(float)model.getValue("SLAMSPD")*50);
129127
plan_dir.setLayoutX(xAxis.getDisplayPosition(model.getValue("LPOSY")));
130128
plan_dir.setLayoutY(yAxis.getDisplayPosition(model.getValue("LPOSX")));
131129
plan_rotate.angleProperty().set(180+MSPMathUtils.fromRad(model.getValue("SLAMDIR")));
@@ -151,10 +149,6 @@ public void layoutAnnotation(ValueAxis xAxis, ValueAxis yAxis) {
151149

152150
}
153151

154-
public void setScale(float scale) {
155-
this.scale = scale;
156-
}
157-
158152
public void clear() {
159153
Platform.runLater(() -> {
160154
act_dir.setVisible(false);

MAVGCL/src/com/comino/flight/ui/widgets/charts/xy/XYChartWidget.java

-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ private void updateGraph(boolean refresh) {
713713
xychart.getAnnotations().clearAnnotations(Layer.FOREGROUND);
714714

715715
if(show_grid.isSelected() && mList.size()>0 && isLocalPositionSelected(type1_x.hash,type1_y.hash)) {
716-
slam.setScale(scale);
717716
xychart.getAnnotations().add(slam, Layer.FOREGROUND);
718717
}
719718

0 commit comments

Comments
 (0)