Closed sylque closed 2 months ago
This would be a breaking change as down-sampling of 0 is intentionally intended to seamlessly disable monitoring. So many users have used this way in the past. (including me :D). So by making this change we would require people to set large numbers for downsampling rates like >100000. But the good value would depend on the MCU also and its loop speed.
So what I propose is to do this :
if( !monitor_downsample || monitor_cnt++ < (monitor_downsample-1) ) return;
Now down-sample of 1 actually disables down-sampling. Do you agree with this approach?
Looks great, thanks.
Describe the bug There seems to be no way to disable monitor downsampling. Setting
monitor_downsample
to zero disables monitoring altogether.The reason lies here:
This should be replaced by:
Describe the hardware setup ESP32 + SimpleFOCMini + AS4048A + miniatute gimbal motor
IDE you are using Platformio