Fri Feb 25 11:03:13 AM HKT 2022
This commit is contained in:
parent
33730089bc
commit
8d6a76e345
@ -88,7 +88,7 @@ class _RoslibPSPadState extends State<RoslibPSPad> {
|
||||
twist['angular'] == {'x': 0.0, 'y': 0.0, 'z': 0.0}) {
|
||||
return;
|
||||
}
|
||||
|
||||
print('Direction to published ' + jsonEncode(twist));
|
||||
cmdVelTopic.publish(twist);
|
||||
lastDirectionTwist = twist;
|
||||
}
|
||||
|
@ -395,10 +395,10 @@ class _KeyPadState extends State<KeyPad> {
|
||||
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<KeyPad> {
|
||||
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<KeyPad> {
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user