I’m using the pin map CPUMAPESP32ESCSPINDLE with great success but I noticed that “defaults.h” overrides the values defined in “cpu_map.h” for:
DEFAULTSPINDLEOFF_VALUE
DEFAULTSPINDLEMIN_VALUE
DEFAULTSPINDLEMAX_VALUE
when commenting this definitions in “defaults.h” I successfully control the brushless motor thanks to the values defined in “cpu_maps.h”.
DEFAULTSPINDLEFREQ instead is not overridden
no clue why this is happening
评论 (2)
#2 – Stefano-Orsolini 于 2020-03-15
I guess I must have edited the parameters and created the problem myself.
I confirm that everything works using latest master as you stated!
#1 – MitchBradley 于 2020-03-15
Which version are you using? In the latest master, those definitions are guarded by ifndef like this:
“
“#ifndef DEFAULTSPINDLEOFF_VALUE
#define DEFAULTSPINDLEOFF_VALUE 0.0 // $34 Percent (extended set)
#endif
The ifndef guards are supposed to prevent defaults.h from overriding values that are already set in cpu_map.h. The guards have been present since at least 4 months ago (commit 8f4e7c20).