Support for BariCUDA Paste Extruder derived from MakerBot Frostruder. Using Ultimachine RAMBo board. M126/M127 and M128/M129.

This commit is contained in:
Jordan Miller
2013-05-14 16:25:53 -04:00
committed by Erik van der Zalm
parent 90664d20a4
commit fbd899a37d
5 changed files with 61 additions and 1 deletions

View File

@ -439,12 +439,18 @@ void check_axes_activity()
unsigned char z_active = 0;
unsigned char e_active = 0;
unsigned char tail_fan_speed = fanSpeed;
unsigned char valve_pressure = 0;
unsigned char e_to_p_pressure = 0;
unsigned char tail_valve_pressure = 0;
unsigned char tail_e_to_p_pressure = 0;
block_t *block;
if(block_buffer_tail != block_buffer_head)
{
uint8_t block_index = block_buffer_tail;
tail_fan_speed = block_buffer[block_index].fan_speed;
tail_valve_pressure = block_buffer[block_index].valve_pressure;
tail_e_to_p_pressure = block_buffer[block_index].e_to_p_pressure;
while(block_index != block_buffer_head)
{
block = &block_buffer[block_index];
@ -486,6 +492,17 @@ void check_axes_activity()
#ifdef AUTOTEMP
getHighESpeed();
#endif
#if HEATER_1_PIN > -1
if (ValvePressure != 0){
analogWrite(HEATER_1_PIN,ValvePressure); // If buffer is empty use current fan speed
}
#endif
#if HEATER_2_PIN > -1
if (EtoPPressure != 0){
analogWrite(HEATER_2_PIN,EtoPPressure); // If buffer is empty use current fan speed
}
#endif
}
@ -559,6 +576,8 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
}
block->fan_speed = fanSpeed;
block->valve_pressure = ValvePressure;
block->e_to_p_pressure = EtoPPressure;
// Compute direction bits for this block
block->direction_bits = 0;