Skip to content

Commit c7a486b

Browse files
committed
fix colors.
1 parent 1faf66d commit c7a486b

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

LogViewer/LogViewer/Controls/SimpleLineChart.xaml.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,8 @@ public Color LineColor
687687
this.Stroke = new SolidColorBrush(value);
688688

689689
HlsColor darker = new HlsColor(value);
690-
darker.Darken(0.33f);
690+
darker.Darken(0.25f);
691691
PointerBorder.BorderBrush = Pointer.Fill = PointerLabel.Foreground = new SolidColorBrush(darker.Color);
692-
693692
}
694693
}
695694

LogViewer/LogViewer/MainWindow.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ IEnumerable<DataValue> GetSelectedDataValues(LogItemSchema schema)
989989

990990
Color GetRandomColor()
991991
{
992-
return new HlsColor((float)(rand.NextDouble() * 360), 0.7f, 0.95f).Color;
992+
return new HlsColor((float)(rand.NextDouble() * 360), 0.85f, 0.85f).Color;
993993
}
994994

995995
Random rand = new Random();

LogViewer/Networking/Mavlink/MavlinkTypes.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -6110,8 +6110,6 @@ public struct mavlink_debug_t
61106110

61116111
};
61126112

6113-
6114-
61156113
// custom message from the simulator
61166114
[StructLayout(LayoutKind.Sequential, Pack = 1, Size = 12*4)]
61176115
public struct mavlink_telemetry
@@ -6123,14 +6121,12 @@ public struct mavlink_telemetry
61236121
public int crc_errors; // # crc errors detected in mavlink stream since the last telemetry message
61246122
public int handler_microseconds; // total time spent in the handlers in microseconds since the last telemetry message
61256123
public int render_time; // total time spent rendering frames since the last telemetry message
6126-
public int wifi_rssi; // if this device is communicating over wifi this is the signal strength.
6124+
public int wifi_rssi; // if this device is communicating over wifi this is the signal strength.
61276125
public int udpate_rate; // rate at which update() is being called on MavLinkMultiRotorApi
61286126
public int actuation_delay; // delay from HIL_SENSOR to HIL_ACTUATORCONTROLS response
61296127
public int sensor_rate; // rate we are sending HIL_SENSOR messages
61306128
public int lock_step_resets; // total number of lock_step resets
61316129
public int update_time; // avg time spent inside MavLinkMultiRotorApi::update method.
61326130
};
6133-
6134-
61356131
}
61366132
}

0 commit comments

Comments
 (0)