From 3d49ab1fc525f1189fa0cf936b02e890a0a36b37 Mon Sep 17 00:00:00 2001 From: Yves Ehrlich Date: Thu, 13 Feb 2020 14:39:41 +0100 Subject: [PATCH] Joystick --- Code/miniRobotRC/JoystickSteuerung.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/miniRobotRC/JoystickSteuerung.ino b/Code/miniRobotRC/JoystickSteuerung.ino index a71d611..4adfe9e 100644 --- a/Code/miniRobotRC/JoystickSteuerung.ino +++ b/Code/miniRobotRC/JoystickSteuerung.ino @@ -50,11 +50,11 @@ void joystickInit() { void send(){ commands[0] = speedA; - commands[1] = highByte(left -> PWMValue); - commands[2] = lowByte(left -> PWMValue); + commands[1] = highByte(right -> PWMValue); + commands[2] = lowByte(right -> PWMValue); commands[3] = speedB; - commands[4] = highByte(right -> PWMValue); - commands[5] = lowByte(right -> PWMValue); + commands[4] = highByte(left -> PWMValue); + commands[5] = lowByte(left -> PWMValue); commands[6] = timeToDrive; commands[7] = highByte(driveTimeout); commands[8] = lowByte(driveTimeout);