add bta_mirtemp

This commit is contained in:
eddyem
2018-08-31 15:20:34 +03:00
parent b1771c5104
commit 6d471893c4
9 changed files with 1830 additions and 3 deletions

View File

@@ -58,7 +58,8 @@
#define USTEP_DELAY (1./MAX_SPEED/USTEPS/2)
// Position angle calculation (val_Alp, val_Del, S_time - for real work)
#define CALC_PA() calc_PA(SrcAlpha, SrcDelta, S_time)
//#define CALC_PA() calc_PA(SrcAlpha, SrcDelta, S_time)
#define CALC_PA() calc_PA(val_Alp, val_Del, S_time)
// PA value for zero end-switch (add this value to desired PA)
#define PA_ZEROVAL (0.)

View File

@@ -331,13 +331,14 @@ void stepper_process(){
}
}
if(curtime - laststeptime > target_pa_period){
laststeptime = curtime;
#ifdef __arm__
Toggle(STEP_PIN);
#endif // __arm__
current_usteps += dir;
DBG("STEP");
DBG("STEP, angle=%g", CALC_PA() - p_first);
print_PA(CALC_PA());
}
print_PA(CALC_PA());
}
}