Fix sensors

Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
Vasiliy Doylov 2025-03-02 12:24:35 +03:00
parent d229ddc372
commit 10ee5ad592
Signed by: NekoCWD
GPG key ID: B7BE22D44474A582

View file

@ -22,7 +22,8 @@ class TheCatTools.GUI.BoubleBar : Gtk.DrawingArea, Gtk.Orientable {
var line_width = height / 120;
var gap = line_width;;
var radius = width / 2 - gap;
var value = value + 90;
var value = (value + 90) * -1;
value = value % 360 * ((int) (value / 360) % 2 == 0 ? -1 : 1);
var position = radius + (height - radius * 2) * value / 180;
message ("%f = %f", value, position);