dev
Jing Li 2022-11-16 17:45:44 +08:00
parent a079a9d9a2
commit c77c58ce6b
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class LinkosDeviceLogService
$y += cos($radian);
}
$degree = round(rad2deg(atan($x / $y)));
$degree = round(rad2deg(atan2($y, $x)));
if (($x > 0 || $x < 0) && $y < 0) {
$degree += 180;