adeept / adeept_picar-b

adeept_PiCar-B v2.0
24 stars 34 forks source link

servo.py should be recoded if used for Pi Car-B #2

Open bluesailor45 opened 3 years ago

bluesailor45 commented 3 years ago

Issues: probably NOT usable for Pi Car-B: should be indicated and corrected 1) pwm Values for wheel motor and camera motor are hardcoded in code - values should be get from file "set.txt" 2) turn_left, turn_right functions does not work correct 3) function look_left(speed) and anlog functions: speed is actually only increment value

WilliamWalkerMercier commented 1 year ago

How do you correct turn_left turn_right ?

adeept commented 1 year ago

The WEB control interface requires the Raspberry Pi to run the webSever.py program. webServer.py will call the RPiservo.py program to control the servo. " turn_left , turn_right " is used for server.py program, but server.py program is not recommended. It is more recommended to use the webServer.py program.

WilliamWalkerMercier commented 1 year ago

how do i use turn_left turn_right with the web server program ? do i have to change a call ?

adeept commented 1 year ago

Yes, you need to call the function in RPiservo.py to control the servo in the WEB interface.

For example: Line 242 in the webServer.py file is to call the function in RPiservo.py: scGear. moveAngle(2, 30) Among them, "2" is the port number of the servo, and "30" is the rotation of the servo to 30 degrees (the default initial angle is 90 degrees)

Technical Support @.***

---- Replied Message ---- From @.> Date 5/10/2023 01:55 To @.> Cc @.> , @.> Subject Re: [adeept/adeept_picar-b] servo.py should be recoded if used for Pi Car-B (#2)

how do i use turn_left turn_right with the web server program ? do i have to change a call ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

WilliamWalkerMercier commented 1 year ago

The GUIfindline program makes some time to turn the wheel, how can i correct it ?

Le mer. 10 mai 2023 à 04:16, Adeept @.***> a écrit :

Yes, you need to call the function in RPiservo.py to control the servo in the WEB interface.

For example: Line 242 in the webServer.py file is to call the function in RPiservo.py: scGear. moveAngle(2, 30) Among them, "2" is the port number of the servo, and "30" is the rotation of the servo to 30 degrees (the default initial angle is 90 degrees)

Technical Support @.***

---- Replied Message ---- From @.> Date 5/10/2023 01:55 To @.> Cc @.> , @.> Subject Re: [adeept/adeept_picar-b] servo.py should be recoded if used for Pi Car-B (#2)

how do i use turn_left turn_right with the web server program ? do i have to change a call ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/adeept/adeept_picar-b/issues/2#issuecomment-1541193113, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5UCBR5ZHPLQP6YHRQCU4GLXFL27VANCNFSM4V5KLKGQ . You are receiving this because you commented.Message ID: @.***>