mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-05 09:51:47 +08:00
todo
This commit is contained in:
@@ -84,6 +84,7 @@ RT_DEINIT(
|
||||
FRT(
|
||||
float p = mod(TIM_GetCounter(ENC1_TIM) * 2.0f * M_PI / (float)e_res);
|
||||
PIN(pos) = p;
|
||||
//TODO: this gets triggered by wire saving abs encoders. add timeout?
|
||||
if(RISING_EDGE(!GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_11)) && PIN(isabs) != 1.0){
|
||||
absoffset = -p;
|
||||
PIN(isabs) = 1.0;
|
||||
|
||||
Reference in New Issue
Block a user