当前位置: 首页>>代码示例>>C++>>正文


C++ setTargetHotend0函数代码示例

本文整理汇总了C++中setTargetHotend0函数的典型用法代码示例。如果您正苦于以下问题:C++ setTargetHotend0函数的具体用法?C++ setTargetHotend0怎么用?C++ setTargetHotend0使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setTargetHotend0函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: lcd_fd

static void lcd_fd()
{
if (fil_temp == 200)
{
setTargetHotend0(plaPreheatHotendTemp);
}
if (fil_temp == 230)
{
setTargetHotend0(absPreheatHotendTemp);
}
setWatch(); // heater sanity check timer
if (!isHeatingHotend(0)&&(filament_seq == 0))
{
filament_seq = 1;
}
if ((filament_seq == 0)&&(pausa_display == 0))
{
pausa_display = 1;
}
if (filament_seq == 1)
{   
if (st_message == 0)  
    {
	lcdDrawUpdate = 2;  
	lcd_implementation_message0(PSTR(""));
    lcd_implementation_message1(PSTR("Se puede sacar"));
	lcd_implementation_message2(PSTR("el filamento.."));
	lcd_implementation_message3(PSTR(""));
	}
}
else
    {
    lcd_implementation_message4(PSTR(" Calentando..."));
    _draw_heater_status(6, 0);
	lcdDrawUpdate = 1;
	u8g.drawBitmapP(9,1,STATUS_SCREENBYTEWIDTH,STATUS_SCREENHEIGHT, (blink % 2) && fanSpeed ? status_screen0_bmp : status_screen1_bmp);
	
	}
	
if ((LCD_CLICKED) || (degTargetHotend(0) == 0)  || (currentMenu == lcd_status_screen))
	{
 	filament_seq = 0;
	st_message = 0;
	pausa_display = 0;
	encoder_zero = 0;
	setTargetHotend0(0);
	lcd_return_to_status();
    }
}
开发者ID:Trideo,项目名称:PrintBox-Max,代码行数:49,代码来源:ultralcd.cpp

示例2: lcd_cooldown

////i4
void lcd_cooldown()
{
    setTargetHotend0(0);
    setTargetBed(0);
    fanSpeed = 0;
    lcd_return_to_status();
}
开发者ID:Trideo,项目名称:PrintBox-Max,代码行数:8,代码来源:ultralcd.cpp

示例3: getHighESpeed

  void getHighESpeed() {
    static float oldt = 0;

    if (!autotemp_enabled) return;
    if (degTargetHotend0() + 2 < autotemp_min) return; // probably temperature set to zero.

    float high = 0.0;
    uint8_t block_index = block_buffer_tail;

    while (block_index != block_buffer_head) {
      block_t *block = &block_buffer[block_index];
      if (block->steps[X_AXIS] || block->steps[Y_AXIS] || block->steps[Z_AXIS]) {
        float se = (float)block->steps[E_AXIS] / block->step_event_count * block->nominal_speed; // mm/sec;
        if (se > high) high = se;
      }
      block_index = next_block_index(block_index);
    }

    float t = autotemp_min + high * autotemp_factor;
    t = constrain(t, autotemp_min, autotemp_max);
    if (oldt > t) {
      t *= (1 - AUTOTEMP_OLDWEIGHT);
      t += AUTOTEMP_OLDWEIGHT * oldt;
    }
    oldt = t;
    setTargetHotend0(t);
  }
开发者ID:RuanAragao,项目名称:MarlinDev,代码行数:27,代码来源:planner.cpp

示例4: checkHitEndstops

void checkHitEndstops()
{
 if( endstop_x_hit || endstop_y_hit || endstop_z_hit) {
   SERIAL_ECHO_START;
   SERIAL_ECHOPGM(MSG_ENDSTOPS_HIT);
   if(endstop_x_hit) {
     SERIAL_ECHOPAIR(" X:",(float)endstops_trigsteps[X_AXIS]/axis_steps_per_unit[X_AXIS]);
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "X");
   }
   if(endstop_y_hit) {
     SERIAL_ECHOPAIR(" Y:",(float)endstops_trigsteps[Y_AXIS]/axis_steps_per_unit[Y_AXIS]);
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Y");
   }
   if(endstop_z_hit) {
     SERIAL_ECHOPAIR(" Z:",(float)endstops_trigsteps[Z_AXIS]/axis_steps_per_unit[Z_AXIS]);
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
   }
   SERIAL_ECHOLN("");
   endstop_x_hit=false;
   endstop_y_hit=false;
   endstop_z_hit=false;
#ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
   if (abort_on_endstop_hit)
   {
     card.sdprinting = false;
     card.closefile();
     quickStop();
     setTargetHotend0(0);
     setTargetHotend1(0);
     setTargetHotend2(0);
   }
#endif
 }
}
开发者ID:AllenMcAfee,项目名称:Ultimaker2Marlin,代码行数:34,代码来源:stepper.cpp

示例5: lcd_preheat_flex

void lcd_preheat_flex()
{
    setTargetHotend0(flexPreheatHotendTemp);
    setTargetBed(flexPreheatHPBTemp);
    fanSpeed = 0;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:thisismud,项目名称:Prusa-i3-Plus,代码行数:8,代码来源:ultralcd.cpp

示例6: lcd_preheat_abs0

void lcd_preheat_abs0()
{
    setTargetHotend0(absPreheatHotendTemp);
    setTargetBed(absPreheatHPBTemp);
    fanSpeed = absPreheatFanSpeed;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:elmarnitsche,项目名称:Firmware-Playground,代码行数:8,代码来源:ultralcd.cpp

示例7: lcd_cooldown

static void lcd_cooldown()
{
    setTargetHotend0(0);
    setTargetHotend1(0);
    setTargetHotend2(0);
    setTargetBed(0);
    lcd_return_to_status();
}
开发者ID:tianshiz,项目名称:3DPrinterr,代码行数:8,代码来源:ultralcd.cpp

示例8: lcd_preheat_abs

void lcd_preheat_abs()
{
    setTargetHotend0(absPreheatHotendTemp);
    setTargetHotend1(absPreheatHotendTemp);
    setTargetHotend2(absPreheatHotendTemp);
    setTargetBed(absPreheatHPBTemp);
    fanSpeed = absPreheatFanSpeed;
    lcd_return_to_status();
}
开发者ID:ahathoor,项目名称:DefaPrintteri,代码行数:9,代码来源:ultralcd.cpp

示例9: lcd_preheat_pla

void lcd_preheat_pla()
{
    setTargetHotend0(plaPreheatHotendTemp);
    setTargetHotend1(plaPreheatHotendTemp);
    setTargetHotend2(plaPreheatHotendTemp);
    setTargetBed(plaPreheatHPBTemp);
    fanSpeed = plaPreheatFanSpeed;
    lcd_return_to_status();
}
开发者ID:ahathoor,项目名称:DefaPrintteri,代码行数:9,代码来源:ultralcd.cpp

示例10: lcd_preheat_laybrick

void lcd_preheat_laybrick()
{
    setTargetHotend0(LAYBRICK_PREHEAT_HOTEND_TEMP);
    setTargetHotend1(LAYBRICK_PREHEAT_HOTEND_TEMP);
    setTargetHotend2(LAYBRICK_PREHEAT_HOTEND_TEMP);
    setTargetBed(LAYBRICK_PREHEAT_HPB_TEMP);
    fanSpeed = LAYBRICK_PREHEAT_FAN_SPEED;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:BCN3D,项目名称:Paste-Extruder-Firmware,代码行数:10,代码来源:ultralcd.cpp

示例11: lcd_preheat_nylon

void lcd_preheat_nylon()
{
    setTargetHotend0(nylonPreheatHotendTemp);
    setTargetHotend1(nylonPreheatHotendTemp);
    setTargetHotend2(nylonPreheatHotendTemp);
    setTargetBed(nylonPreheatHPBTemp);
    fanSpeed = nylonPreheatFanSpeed;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:BCN3D,项目名称:Paste-Extruder-Firmware,代码行数:10,代码来源:ultralcd.cpp

示例12: lcd_preheat_pla

void lcd_preheat_pla()
{
    setTargetHotend0(plaPreheatHotendTemp);
    setTargetHotend1(plaPreheatHotendTemp);
    setTargetHotend2(plaPreheatHotendTemp);
    setTargetBed(plaPreheatHPBTemp);
    fanSpeed = plaPreheatFanSpeed;
    lcd_return_to_status();
    setWatch(); // heater sanity check timer
}
开发者ID:tianshiz,项目名称:3DPrinterr,代码行数:10,代码来源:ultralcd.cpp

示例13: lcd_preheat_abs

void lcd_preheat_abs()
{
    setTargetHotend0(absPreheatHotendTemp);
    setTargetHotend1(absPreheatHotendTemp);
    setTargetHotend2(absPreheatHotendTemp);
    setTargetBed(absPreheatHPBTemp);
#if FAN_PIN > -1
    fanSpeed = absPreheatFanSpeed;
    analogWrite(FAN_PIN,  fanSpeed);
#endif
    lcd_return_to_status();
}
开发者ID:peter6960,项目名称:OpenHardwarecozaFirmwares,代码行数:12,代码来源:ultralcd.cpp

示例14: checkHitEndstops

void checkHitEndstops()
{
 if( endstop_x_hit || endstop_y_hit || endstop_z_hit || endstop_j_hit) {
   SERIAL_ECHO_START;
   snprintf(json_str,JSONSIZE,"{%s:[",MSG_ENDSTOPS_HIT);
   SERIAL_PROTOCOL(json_str);
   comma = false;
   if(endstop_x_hit) {
     SERIAL_PROTOCOLPGM("\"x\"");
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "X");
     comma = true;
   }
   if(endstop_y_hit) {
     if (comma) SERIAL_PROTOCOLPGM(",");
     SERIAL_PROTOCOLPGM("\"y\"");
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Y");
     comma = true;
   }
   if(endstop_z_hit) {
     if (comma) SERIAL_PROTOCOLPGM(",");
     SERIAL_PROTOCOLPGM("\"z\"");
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "Z");
     comma = true;
   }
   if(endstop_j_hit) {
     if (comma) SERIAL_PROTOCOLPGM(",");
     SERIAL_PROTOCOLPGM("\"j\"");
     LCD_MESSAGEPGM(MSG_ENDSTOPS_HIT "J");
   }
   SERIAL_PROTOCOL("]}");
   SERIAL_MSG_END;
   endstop_x_hit=false;
   endstop_y_hit=false;
   endstop_z_hit=false;
   endstop_j_hit=false;
#ifdef ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED
   if (abort_on_endstop_hit)
   {
     card.sdprinting = false;
     card.closefile();
     quickStop();
     setTargetHotend0(0);
     setTargetHotend1(0);
     setTargetHotend2(0);
   }
#endif
 }
}
开发者ID:ElementRobot,项目名称:firmware,代码行数:48,代码来源:stepper.cpp

示例15: getHighESpeed

void getHighESpeed()
{
  static float oldt=0;
  if(!autotemp_enabled){
    return;
  }
  if(degTargetHotend0()+2<autotemp_min) {  //probably temperature set to zero.
    return; //do nothing
  }

  float high=0.0;
  uint8_t block_index = block_buffer_tail;

  while(block_index != block_buffer_head) {
    if((block_buffer[block_index].steps_x != 0) ||
      (block_buffer[block_index].steps_y != 0) ||
      (block_buffer[block_index].steps_z != 0)) {
      float se=(float(block_buffer[block_index].steps_e)/float(block_buffer[block_index].step_event_count))*block_buffer[block_index].nominal_speed;
      //se; mm/sec;
      if(se>high)
      {
        high=se;
      }
    }
    block_index = (block_index+1) & (BLOCK_BUFFER_SIZE - 1);
  }

  float g=autotemp_min+high*autotemp_factor;
  float t=g;
  if(t<autotemp_min)
    t=autotemp_min;
  if(t>autotemp_max)
    t=autotemp_max;
  if(oldt>t)
  {
    t=AUTOTEMP_OLDWEIGHT*oldt+(1-AUTOTEMP_OLDWEIGHT)*t;
  }
  oldt=t;
  setTargetHotend0(t);
}
开发者ID:T3P3,项目名称:Marlin-1,代码行数:40,代码来源:planner.cpp


注:本文中的setTargetHotend0函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。