mirror of
https://github.com/eddyem/BTA_utils.git
synced 2026-03-20 00:31:07 +03:00
add bta_mirtemp
This commit is contained in:
@@ -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.)
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user