Scott Lahteine
6131c62499
General cleanup
il y a 7 ans
Scott Lahteine
e244399766
Additional cleanup of UBL code
il y a 7 ans
AnHardt
fa26767efe
Replace all remaining 'boolean' with 'bool'
il y a 7 ans
Scott Lahteine
c6226bb0aa
Unify config in a single include without nested includes
il y a 8 ans
esenapaj
03b8f88092
Tab to Space
il y a 8 ans
Scott Lahteine
03c70c1990
SERVO_DEACTIVATION_DELAY => SERVO_DELAY
il y a 8 ans
Scott Lahteine
0da744b7b0
Further cleanup of comments, partial Doxygen-style
Following up on #3231
il y a 8 ans
jbrazio
5e5d250832
Added gplv3 header to all Marlin files
il y a 8 ans
Scott Lahteine
6e1bc03d3b
Additional wrapping for #3140
il y a 8 ans
Scott Lahteine
f9ded2a7c4
Wrap macros to prevent bad expansions
il y a 8 ans
Scott Lahteine
ff13070b59
Use _BV macros, patch up others
il y a 8 ans
Scott Lahteine
209f5f21e0
Use macros where possible
Apply `constrain`, `NOMORE`, `NOLESS` and `CRITICAL_SECTION` macros
wherever possible.
il y a 8 ans
Scott Lahteine
0c7f7ebcfb
Styling adjustments (PR#2668 & PR#2670)
Keep "astyled" reformatting
il y a 9 ans
Scott Lahteine
46453905d6
Apply remaining ENABLED/DISABLED conditionals
il y a 9 ans
Scott Lahteine
58cfcd4239
Overridable Options - Part 5
Apply `ENABLED` / `DISABLED` macros to files needing only a small
number of changes.
il y a 9 ans
AnHardt
8b876241bd
Some more servo code tweaks
Just set up the pin. Don't move to a random position.
Simplify servo::move()
* servo::move() does not need the pin parameter - The pin is set during servo_init() with attach().
* servo::move() does not need a return value.
SERVO_LEVELING is the wrong condition to deactivate the servos.
Remove some temporary (Servo *) variables.
SanityCheck for the servo indexes.
il y a 9 ans
Scott Lahteine
96ace72ddc
Servos attach/detach based only on servo config
Assuming #2470 fixed up the main issue.
il y a 9 ans
Scott Lahteine
eacfe132aa
Change the name of servos[] and servo_t
il y a 9 ans
Scott Lahteine
3b23ccd366
Patch servos code for move
- Have `Servo::attach` explicitly return -1 if it fails
- Check for -1 in `Servo::move` because `servoIndex` might be 0
- Make `attach` / `detach` calls conditional on `SERVO_LEVELING`
- Move `SERVO_LEVELING` define to `Conditionals.h`
il y a 9 ans
AnHardt
a6628f12cc
Eliminate the further use of the pin-parameter
il y a 9 ans
AnHardt
8504992e9f
Remove the additional pin variable in Servo.cpp
as sugested by @c-born
inhttps://github.com/MarlinFirmware/Marlin/issues/1885#issuecomment -92618240
il y a 9 ans
Scott Lahteine
391386dd94
Update configs for new servo deactivation
il y a 9 ans
AnHardt
2ddb2a2be9
Add Servo::move() to servo.cpp
move(pin, angel) - Sequence of attach(pin), write(angel),
if DEACTIVATE_SERVOS_AFTER_MOVE is defined waits SERVO_DEACTIVATION_DELAY, than detaches.
As we have jitter on the servos during moves of the steppers, and detaching them improves this behaviour,
the usual sequence to handle a servo movement is:
attach(pin)
write(angel)
delay(until the servo finished the move)
detache()
Here a function to handle the complete sequence.
il y a 9 ans
Scott Lahteine
42465ee444
Cleanup of comments & spacing
il y a 9 ans
Ivan Galvez Junquera
59529b755d
Fixed lowercase change missing on commit a22a228b .
Servo.cpp and Servo.h were changed to lowercase in Makefile but not their actual filenames.
il y a 9 ans
Bernardo
e449659338
Update Servo.cpp
Updated "servo.h" to "Servo.h"
il y a 9 ans
Scott Lahteine
a22a228bcc
Rename files to move them in the IDE
il y a 9 ans
Scott Lahteine
06c3b37933
Formatting cleanup of quiet sources
Formatting for code-folding plus minor style changes to less active
code.
il y a 9 ans
alexborro
d74aabf259
Revert "Change Auto_Bed_Leveling to Auto_Bed_Compensation"
il y a 10 ans
John Davis
58c4473bea
Update Servo.cpp
Changed AUTO_BED_LEVELING to AUTO_BED_COMPENSATION
il y a 10 ans
Alex Borro
253dfc4bc1
Bed Auto Leveling feature
Check the Readme for instruction how to enable and configure the feature
il y a 11 ans
Scott Lahteine
5dabc95409
Apply all changes from latest Marlin_V1
Diffed and merged, preserving my updates
il y a 11 ans
Gord Christmas
a733537ddd
Missed some variable declarations
Integrated fixes from henrikbrixandersen pull request #504
il y a 11 ans
Erik van der Zalm
86cce025f4
Added #ifdef NUM_SERVOS to servo.cpp
il y a 11 ans
Gord Christmas
b668cb0516
Adding in clean copies of Servo library from Arduino 1.0.4
il y a 11 ans