From 8d6a76e34560d8074fbb16887906bc58e1494a77 Mon Sep 17 00:00:00 2001 From: Terence Tong Date: Fri, 25 Feb 2022 11:03:13 +0800 Subject: [PATCH] Fri Feb 25 11:03:13 AM HKT 2022 --- example/pspad/lib/main.dart | 2 +- example/pspad/lib/pad.dart | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/pspad/lib/main.dart b/example/pspad/lib/main.dart index b86db13..4893033 100644 --- a/example/pspad/lib/main.dart +++ b/example/pspad/lib/main.dart @@ -88,7 +88,7 @@ class _RoslibPSPadState extends State { twist['angular'] == {'x': 0.0, 'y': 0.0, 'z': 0.0}) { return; } - + print('Direction to published ' + jsonEncode(twist)); cmdVelTopic.publish(twist); lastDirectionTwist = twist; } diff --git a/example/pspad/lib/pad.dart b/example/pspad/lib/pad.dart index cecd258..178bbbc 100644 --- a/example/pspad/lib/pad.dart +++ b/example/pspad/lib/pad.dart @@ -395,10 +395,10 @@ class _KeyPadState extends State { top: circleDiameter - shortMargin - keySize / 2, child: Listener( onPointerDown: (event) { - widget.triangleCallback(-1); + widget.crossCallback(-1); }, onPointerUp: (event) { - widget.triangleCallback(1); + widget.crossCallback(1); }, child: Container( width: keySize, @@ -414,10 +414,10 @@ class _KeyPadState extends State { top: circleDiameter / 2 - keySize / 2, child: Listener( onPointerDown: (event) { - widget.triangleCallback(-1); + widget.squareCallback(-1); }, onPointerUp: (event) { - widget.triangleCallback(1); + widget.squareCallback(1); }, child: Container( width: keySize, @@ -433,10 +433,10 @@ class _KeyPadState extends State { top: circleDiameter / 2 - keySize / 2, child: Listener( onPointerDown: (event) { - widget.triangleCallback(-1); + widget.circleCallback(-1); }, onPointerUp: (event) { - widget.triangleCallback(1); + widget.circleCallback(1); }, child: Container( width: keySize,