Fix naming

This commit is contained in:
Christian Semmler 2024-03-15 11:19:35 -04:00
parent e22330537f
commit 82812da1c5
3 changed files with 8 additions and 4 deletions

View File

@ -113,7 +113,7 @@ class LegoNavController : public MxCore {
// one copy of defaults (these can be set by App.)
static int g_defdeadZone;
static float m_defzeroThreshold;
static float g_defzeroThreshold;
static float g_defmaxLinearVel;
static float g_defmaxRotationalVel;
static float g_defmaxLinearAccel;

View File

@ -25,7 +25,7 @@
int LegoNavController::g_defdeadZone = 40;
// GLOBAL: LEGO1 0x100f4c2c
float LegoNavController::m_defzeroThreshold = 0.001f;
float LegoNavController::g_defzeroThreshold = 0.001f;
// GLOBAL: LEGO1 0x100f4c30
float LegoNavController::g_defmaxLinearVel = 40.0f;
@ -102,7 +102,7 @@ void LegoNavController::SetControlMax(int p_hMax, int p_vMax)
void LegoNavController::SetToDefaultParams()
{
m_deadZone = g_defdeadZone;
m_zeroThreshold = m_defzeroThreshold;
m_zeroThreshold = g_defzeroThreshold;
m_maxRotationalAccel = g_defmaxRotationalAccel;
m_maxLinearAccel = g_defmaxLinearAccel;
m_minRotationalAccel = g_defminRotationalAccel;

View File

@ -15,4 +15,8 @@ p_HELDesc: 'Allow this variable name'
e_RAMStream: 'Allow this enum constant'
p_milliseconds: 'Probably a bug with function call'
m_increaseAmount: "Can't currently detect member in union"
m_increaseFactor: "Can't currently detect member in union"
m_increaseFactor: "Can't currently detect member in union"
delta_rad: "Allow original naming from 1996"
delta_pos: "Allow original naming from 1996"
rot_mat: "Allow original naming from 1996"
new_dir: "Allow original naming from 1996"