Fix sensors
Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
parent
7238d3d866
commit
8516fba9c1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class TheCatTools.GUI.BoubleBar : Gtk.DrawingArea, Gtk.Orientable {
|
|||
var gap = line_width;;
|
||||
var radius = width / 2 - gap;
|
||||
var value = (value + 90);
|
||||
value = value % 360 * ((int) (value / 90) % 2 == 0 ? -1 : 1);
|
||||
value = value % 90 * ((int) (value / 90) % 2 == 0 ? -1 : 1);
|
||||
var position = radius + (height - radius * 2) * value / 180;
|
||||
message ("%f = %f", value, position);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue