Skip to content

Commit

Permalink
Renamed ldminuslq to lqminusld as it should be
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed Sep 9, 2022
1 parent c5733f2 commit cf252f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/param_prj.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
PARAM_ENTRY(CAT_MOTOR, fwmargin, "dig", 0, 10000, 2000, 141 ) \
PARAM_ENTRY(CAT_MOTOR, syncofs, "dig", 0, 65535, 0, 70 ) \
PARAM_ENTRY(CAT_MOTOR, syncadv, "dig/Hz", 0, 65535, 10, 133 ) \
PARAM_ENTRY(CAT_MOTOR, ldminuslq, "mH", 0, 1000, 0, 139 ) \
PARAM_ENTRY(CAT_MOTOR, lqminusld, "mH", 0, 1000, 0, 139 ) \
PARAM_ENTRY(CAT_MOTOR, fluxlinkage, "mWeber", 0, 1000, 90, 140 )

#define INVERTER_PARAMETERS_COMMON \
Expand Down
2 changes: 1 addition & 1 deletion libopeninv
Submodule libopeninv updated 2 files
+1 −1 include/foc.h
+6 −6 src/foc.cpp
2 changes: 1 addition & 1 deletion src/stm32_sine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void Param::Change(Param::PARAM_NUM paramNum)
Param::GetInt(Param::fwkp), Param::GetInt(Param::fwki),
Param::GetInt(Param::fwmargin));
Encoder::SwapSinCos((Param::GetInt(Param::pinswap) & SWAP_RESOLVER) > 0);
FOC::SetMotorParameters(Param::GetFloat(Param::ldminuslq) / 1000.0f, Param::GetFloat(Param::fluxlinkage) / 1000.0f);
FOC::SetMotorParameters(Param::GetFloat(Param::lqminusld) / 1000.0f, Param::GetFloat(Param::fluxlinkage) / 1000.0f);
#endif // CONTROL

Encoder::SetMode((enum Encoder::mode)Param::GetInt(Param::encmode));
Expand Down

0 comments on commit cf252f1

Please sign in to comment.