Freenove / Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi

Apply to FNK0043
Other
133 stars 148 forks source link

Motor test for moving "diagonally to the right & forward" and "moving diagonally to the left & backward" is not working as expected #51

Open sjuk opened 5 months ago

sjuk commented 5 months ago

Server is running on Raspberry Pi 3B+ with latest Raspberry Pi OS 64-Bit (headless).

Note, that it's the smart car with the mecanum wheels.

Steps to reproduce:

  1. ssh to Raspberry Pi 3B+
  2. navigate to Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server
  3. execute "sudo python test.py Motor" => The last too moves "diagonally to the right and forward" and "diagonally to the left and backward" don't work.

Output:

~/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server $ sudo python test.py Motor
Program is starting ... 
The car is moving forward
The car is going backwards
The car is turning left
The car is turning right
The car is moving left
The car is moving right
The car is moving diagonally to the left and forward
The car is moving diagonally to the right and backward
The car is moving diagonally to the right and forward
The car is moving diagonally to the left and backward

End of program

Solution: I created a pull request to fix this issue at https://github.com/Freenove/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/pull/47