From b1ff1386f51f0d61759087d5b416395517ad11f6 Mon Sep 17 00:00:00 2001 From: Michael Pivato Date: Wed, 24 Apr 2019 11:26:24 +0930 Subject: [PATCH] Add comment about pigpio, fix final raw_input --- MotorControl/ESC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MotorControl/ESC.py b/MotorControl/ESC.py index 9d9a26f..3c2402b 100644 --- a/MotorControl/ESC.py +++ b/MotorControl/ESC.py @@ -5,7 +5,7 @@ import os #importing os library so as to communicate with the system import time #importing time library to make Rpi wait because its too impatient -os.system ("sudo pigpiod") #Launching GPIO library +os.system ("sudo pigpiod") #Launching GPIO library, will say it can't connect if already running time.sleep(1) # As i said it is too impatient and so if this delay is removed you will get an error import pigpio #importing GPIO library @@ -94,7 +94,7 @@ def control(): def arm(): #This is the arming procedure of an ESC print("Connect the battery and press Enter") - inp = raw_input() + inp = input() if inp == '': pi.set_servo_pulsewidth(ESC, 0) time.sleep(1)