-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a structure for XYZE-oriented data #15204
Use a structure for XYZE-oriented data #15204
Conversation
b8a54b1
to
9dd9a2e
Compare
Did you check the impact on 8-bitters, with their slow (16 bit) address arithmetic? |
1b2af7a
to
dd789fa
Compare
These changes will only affect compile-time behavior. It's not meant to produce any change in the underlying binary output, but just a change in the semantics. The main purpose is to allow |
5bdedd4
to
efec686
Compare
e30a626
to
db477df
Compare
db5a1f5
to
54d8ce3
Compare
54d8ce3
to
48f50c5
Compare
# Conflicts: # Marlin/src/feature/power_loss_recovery.cpp # Marlin/src/gcode/bedlevel/abl/G29.cpp # Marlin/src/gcode/calibrate/G425.cpp # Marlin/src/gcode/feature/pause/M701_M702.cpp # Marlin/src/lcd/menu/menu_advanced.cpp # Marlin/src/libs/nozzle.cpp # Marlin/src/module/configuration_store.cpp # Marlin/src/module/delta.cpp # Marlin/src/module/motion.cpp # Marlin/src/module/motion.h # Marlin/src/module/probe.cpp # Marlin/src/module/probe.h # Marlin/src/module/scara.cpp
Regression from MarlinFirmware#15204
Use structures with anonymous unions to store axis-oriented arrays for easier access to fields and easier copying of positional data.
Old code:
float raw[XYZE] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS] };
New code:
xyze_pos_t raw = current_position;