Results 1 to 10 of 757
Threaded View
-
12-09-2014, 10:31 AM #11
This single error might explain the flakey behavior of your system. Let's dig in:
In Configuration.h you have the number of servo's defined as 1 in a statement like this:
#define NUM_SERVOS 1 // Servo index starts with 0 for M280 command
Let's check the data structures in Marlin_main.cpp. At roughly 400 line into the file you will see a declaration:
Code:#if NUM_SERVOS > 0 Servo servos[NUM_SERVOS]; #endif
Code:static void engage_z_probe() { // Engage Z Servo endstop if enabled #ifdef SERVO_ENDSTOPS if (servo_endstops[Z_AXIS] > -1) { #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) servos[servo_endstops[Z_AXIS]].attach(0); #endif servos[servo_endstops[Z_AXIS]].write(servo_endstop_angles[Z_AXIS * 2]); #if defined (ENABLE_AUTO_BED_LEVELING) && (PROBE_SERVO_DEACTIVATION_DELAY > 0) delay(PROBE_SERVO_DEACTIVATION_DELAY); servos[servo_endstops[Z_AXIS]].detach(); #endif } #endif }
Code:enum AxisEnum {X_AXIS=0, Y_AXIS=1, Z_AXIS=2, E_AXIS=3};
Code:servos[servo_endstops[Z_AXIS]].attach(0); servos[servo_endstops[Z_AXIS]].write(servo_endstop_angles[Z_AXIS * 2]); servos[servo_endstops[Z_AXIS]].detach();
Code:bool CooldownNoWait = true; bool target_direction;
Code:extern "C"{ extern unsigned int __bss_end; extern unsigned int __heap_start; extern void *__brkval; int freeMemory()
Last edited by Roxy; 12-09-2014 at 10:37 AM.
New to 3d printing looking for...
05-20-2024, 12:56 AM in Tips, Tricks and Tech Help