Fix sensors
Signed-off-by: Vasiliy Doylov <nekodevelopper@gmail.com>
This commit is contained in:
parent
4c1e5f65ac
commit
d229ddc372
1 changed files with 2 additions and 1 deletions
|
@ -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 position = radius + (height - radius * 2) * (value) / 180;
|
||||
var value = value + 90;
|
||||
var position = radius + (height - radius * 2) * value / 180;
|
||||
message ("%f = %f", value, position);
|
||||
|
||||
// Bubble
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue