You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
volatileint torquevalues[torquevalues_count]= {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; //stores the 16 torque values per pedal roundtrip (Thun) or half roundtrip (Sempu)
287
285
#elif defined(SUPPORT_SEMPU)
288
286
constint torquevalues_count=24;
289
287
volatileint torquevalues[torquevalues_count]= {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; //stores the 24 torque values per pedal roundtrip (Sempu new version)
290
-
#elif defined(SUPPORT_T9)
291
-
constint torquevalues_count=18;
292
-
volatileint torquevalues[torquevalues_count]= {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; //stores the 18 torque values per half roundtrip (T9)
293
288
#endif
294
289
volatile byte torqueindex=0; //index to write next torque value
295
290
volatile boolean readtorque=false; //true if torque array has been updated -> recalculate in main loop
power_poti = poti_stat/1023.0* curr_power_poti_max; //power_poti_max is in this control mode interpreted as percentage. Example: power_poti_max=200 means; motor power = 200% of human power
0 commit comments