diff options
author | Raspberry Pi <raspberrypi@umn.edu> | 2019-11-26 16:06:04 -0600 |
---|---|---|
committer | Raspberry Pi <raspberrypi@umn.edu> | 2019-11-26 16:06:04 -0600 |
commit | c1a82a2fae12dc236b5700a526c9723fed7445c5 (patch) | |
tree | e7505adbfed8406cfe6e827c77bff52328edd37f | |
parent | Add interrupt flags so that motor cannot be triggered once the HW interrupt h... (diff) | |
download | ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.tar ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.tar.gz ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.tar.bz2 ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.tar.lz ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.tar.xz ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.tar.zst ee4511w-c1a82a2fae12dc236b5700a526c9723fed7445c5.zip |
Fix indentation, add symlink for System folder. Seems to be working as expected. Commiting to merge to master - will need more testing before we know if it's a perfect solution.
Diffstat (limited to '')
l--------- | System/System | 1 | ||||
-rw-r--r-- | System/system.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/System/System b/System/System new file mode 120000 index 0000000..6a04314 --- /dev/null +++ b/System/System @@ -0,0 +1 @@ +./
\ No newline at end of file diff --git a/System/system.py b/System/system.py index dab8c06..75573c5 100644 --- a/System/system.py +++ b/System/system.py @@ -51,7 +51,7 @@ class System: GPIO.add_event_detect(limit_negative_pin, GPIO.FALLING, callback=self.negative_limit_callback)
GPIO.setup(limit_positive_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.add_event_detect(limit_positive_pin, GPIO.FALLING, callback=self.positive_limit_callback)
- self.interrupted = False
+ self.interrupted = False
# Setup soft limits if defined by the user (this is "challenge mode" for the user, making the constraints more difficult).
# By default, the soft limits will not be used (when set NaN), and the whole extent of the system is available (to the HW limits).
|