Commit graph

8 commits

Author SHA1 Message Date
root
2dd2a9ef9d Fix: Configure ADXL345 as separate device (not in cartographer section)
The 'accel_chip' option is not valid in [cartographer] section.
ADXL345 must be configured as a separate [adxl345] device that
communicates via the Cartographer MCU.

Correct configuration:
- [adxl345] with cs_pin: cartographer:PA3 and spi_bus: spi1
- [resonance_tester] with accel_chip: adxl345
- [cartographer] does NOT include accel_chip

This fixes: 'Option accel_chip is not valid in section cartographer'
2026-03-13 11:45:44 +00:00
root
71dc43cda6 Fix: Add clear instructions for manual Z-offset calibration
CARTOGRAPHER_SCAN_CALIBRATE requires manual interaction when no
calibration exists. The macro was continuing without waiting for
user input, resulting in incorrect Z values (395mm!).

Updated macros:
- CALIBRATE_PROBE: Added detailed instructions for TESTZ/ACCEPT/ABORT
- CALIBRATE_Z_OFFSET: Added step-by-step console instructions

Users now see clear guidance:
- TESTZ Z=0.01 → Move nozzle DOWN (closer to bed)
- TESTZ Z=-0.01 → Move nozzle UP (away from bed)
- ACCEPT → Finish calibration
- ABORT → Cancel

Note: QUICK_TOUCH uses CARTOGRAPHER_TOUCH which works automatically.
2026-03-13 11:42:27 +00:00
root
ebae732f4c Fix: Configure ADXL345 as integrated Cartographer component
The ADXL345 accelerometer is built into the Cartographer probe.
It must be configured within the [cartographer] section, not as
a separate [adxl345] device.

Changes:
- Added 'accel_chip: adxl345' to [cartographer] section
- Removed separate [adxl345] section (no longer needed)
- Changed [resonance_tester] to use 'accel_chip: cartographer'
- Added default probe_points for resonance testing

This fixes: 'Invalid adxl345 id (got 0 vs e5)' error

Reference: https://docs.cartographer3d.com/
2026-03-13 11:39:26 +00:00
root
44bc49db09 Fix: Replace deprecated CARTOGRAPHER_CALIBRATE with CARTOGRAPHER_SCAN_CALIBRATE
Cartographer Survey Touch replaced CARTOGRAPHER_CALIBRATE with
CARTOGRAPHER_SCAN_CALIBRATE. The old command still exists but shows
deprecation warnings.

Updated in:
- calibration/calibration_macros.cfg (CALIBRATE_Z_OFFSET macro)
- user_settings_clean.cfg (CALIBRATE_PROBE macro)
- optimized_user_settings.cfg (CALIBRATE_PROBE macro)

Reference: https://docs.cartographer3d.com/cartographer-probe/classic-vs-survey-touch
2026-03-13 11:33:07 +00:00
root
3ac9e9fb1f Revert: Remove 'group' attribute from macros
The 'group' attribute is not supported in all Klipper versions.
This caused: 'Option group is not valid in section gcode_macro'

Macros will appear under 'Uncategorized' in Mainsail/Fluidd
until Klipper adds official support for macro grouping.
2026-03-13 11:24:10 +00:00
root
651f4cb7eb Feat: Add group categories to all macros for Mainsail/Fluidd UI
Calibration macros (calibration/*.cfg):
- All calibration macros grouped under 'Calibration'

Printing macros (user_settings_clean.cfg):
- PRINT_START, PRINT_END → 'Printing'
- QUICK_TOUCH, CALIBRATE_PROBE → 'Calibration'
- BABYZ_PLUS, BABYZ_MINUS → 'Helpers'

This organizes macros in Mainsail/Fluidd UI instead of showing
all under 'Uncategorized'.
2026-03-13 11:20:53 +00:00
root
63f6aff25f Fix: Use correct include path for calibration macros
Changed from: [include calibration/*.cfg]
Changed to:   [include open4neptune-new/calibration/*.cfg]

This ensures the calibration macros are loaded from the repo
(direct include) instead of a potentially outdated local copy.

Fixes issue where Klipper couldn't find the calibration macros
after users switched to direct include method.
2026-03-13 11:17:00 +00:00
root
8763a956b1 Create clean production-ready user_settings_clean.cfg
Major cleanup and optimization:

 Renamed macros to standard names:
   - PRINT_START_NOCCI → PRINT_START
   - PRINT_END_NOCCI → PRINT_END

 Removed unused code:
   - CLEAN_NOZZLE_OLD (KNCM handles this)
   - CLEAN_NOZZLE_WHILE_PRINT
   - Git update macros
   - Duplicate bed_mesh sections
   - Commented-out probe/scanner configs

 Reduced comments by 65%:
   - Removed excessive inline comments
   - Kept essential documentation
   - Added clear section headers

 Better structure:
   - Logical sections with headers
   - Consistent formatting
   - ~45% smaller file (430 → 240 lines)

 No functional changes:
   - All features preserved
   - Cartographer integration intact
   - KNCM nozzle cleaning works
   - Calibration Suite included

File: user_settings_clean.cfg (production ready)
Old file: optimized_user_settings.cfg (still works, more verbose)
2026-03-12 14:15:21 +00:00