From 26a4364d5eac97a8a383d12e7ff751e7bca067cb Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Fri, 20 May 2022 15:57:13 +0800 Subject: [PATCH] motion-control: reduce yaw downscale this make movements (subjectively?) more friendly in general case --- cmd/motion-control/main.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/motion-control/main.ha b/cmd/motion-control/main.ha index fb74c43..ea7b563 100644 --- a/cmd/motion-control/main.ha +++ b/cmd/motion-control/main.ha @@ -102,7 +102,7 @@ export fn main() int = { let attitude = complementary::read_euler(complementary); buf.x = ((attitude.2 / math::PI * 180.0): int / 8): i8; - buf.y = ((attitude.1 / math::PI * 180.0): int / 8): i8; + buf.y = ((attitude.1 / math::PI * 180.0): int / 4): i8; match (udp::send(sock, buf.bytes)) { case let err: net::error => fmt::fatalf("Cannot send(): {}", net::strerror(err)); -- 2.45.2