Skip to content

Commit

Permalink
intermediate commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitzbube committed Dec 6, 2020
1 parent b92eba2 commit 3415014
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 67 deletions.
16 changes: 8 additions & 8 deletions applications/v2.3/HandleDownKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,12 @@ void HandleDownKey(void)
if (bData_40002c1a == 1)
{
//5bd78
SlewRaw(2, 2, g_eSlewRateIndex);
SlewAxis(2, 2, g_eSlewRateIndex);
}
else
{
//0x5bd90
SlewRaw(4, 2, g_eSlewRateIndex);
SlewAxis(4, 2, g_eSlewRateIndex);
}
}
}
Expand All @@ -555,12 +555,12 @@ void HandleDownKey(void)
if (bData_40002c1a == 1)
{
//5bdb8
SlewRaw(2, 2, g_eSlewRateIndex);
SlewAxis(2, 2, g_eSlewRateIndex);
}
else
{
//0x5bdd0
SlewRaw(4, 2, g_eSlewRateIndex);
SlewAxis(4, 2, g_eSlewRateIndex);
}
}
//->0x5ca8c
Expand All @@ -572,13 +572,13 @@ void HandleDownKey(void)
if (bData_40002c1a == 1)
{
//5be0c
SlewRaw(2, 2, 3);
SlewAxis(2, 2, SLEW_RATE_8X);
bData_40002edd = 3;
}
else
{
//0x5be2c
SlewRaw(4, 2, 3);
SlewAxis(4, 2, SLEW_RATE_8X);
bData_40002edd = 1;
}
iBacklashCorrectionSlewing = 1;
Expand All @@ -593,12 +593,12 @@ void HandleDownKey(void)
if (bData_40002c1a == 1)
{
//5be90
SlewRaw(2, 2, 3);
SlewAxis(2, 2, SLEW_RATE_8X);
}
else
{
//0x5bea4
SlewRaw(4, 2, 3);
SlewAxis(4, 2, SLEW_RATE_8X);
}
}
//5beb4 -> 0x5ca8c
Expand Down
16 changes: 8 additions & 8 deletions applications/v2.3/HandleLeftKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,13 +943,13 @@ void HandleLeftKey(void)
if (bData_40002c1a == 1)
{
//599b0
SlewRaw(1, 3, g_eSlewRateIndex);
SlewAxis(1, 3, g_eSlewRateIndex);
//->0x59a1c
}
else
{
//0x599c8
SlewRaw(3, 3, g_eSlewRateIndex);
SlewAxis(3, 3, g_eSlewRateIndex);
//->0x59a1c
}
}
Expand All @@ -960,12 +960,12 @@ void HandleLeftKey(void)
if (bData_40002c1a == 1)
{
//599f0
SlewRaw(1, 3, g_eSlewRateIndex);
SlewAxis(1, 3, g_eSlewRateIndex);
}
else
{
//0x59a08
SlewRaw(3, 3, g_eSlewRateIndex);
SlewAxis(3, 3, g_eSlewRateIndex);
}
}
//-> 0x59dc4
Expand All @@ -989,14 +989,14 @@ void HandleLeftKey(void)
if (bData_40002c1a == 1)
{
//59a74
SlewRaw(1, 3, SLEW_RATE_8X); //3);
SlewAxis(1, 3, SLEW_RATE_8X); //3);

bData_40002edd = 2;
}
else
{
//0x59a94
SlewRaw(3, 3, SLEW_RATE_8X); //3);
SlewAxis(3, 3, SLEW_RATE_8X); //3);

bData_40002edd = 0;
}
Expand All @@ -1014,12 +1014,12 @@ void HandleLeftKey(void)
if (bData_40002c1a == 1)
{
//59afc
SlewRaw(1, 3, g_eSlewRateIndex);
SlewAxis(1, 3, g_eSlewRateIndex);
}
else
{
//0x59b14
SlewRaw(3, 3, g_eSlewRateIndex);
SlewAxis(3, 3, g_eSlewRateIndex);
}
}
//0x59b28 -> 0x59dc4
Expand Down
16 changes: 8 additions & 8 deletions applications/v2.3/HandleRightKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,12 +1013,12 @@ void HandleRightKey(void)
if (bData_40002c1a == 1)
{
//57f2c
SlewRaw(1, 4, g_eSlewRateIndex);
SlewAxis(1, 4, g_eSlewRateIndex);
}
else
{
//0x57f44
SlewRaw(3, 4, g_eSlewRateIndex);
SlewAxis(3, 4, g_eSlewRateIndex);
}
}
}
Expand All @@ -1028,12 +1028,12 @@ void HandleRightKey(void)
if (bData_40002c1a == 1)
{
//57f6c
SlewRaw(1, 4, g_eSlewRateIndex);
SlewAxis(1, 4, g_eSlewRateIndex);
}
else
{
//0x57f84
SlewRaw(3, 4, g_eSlewRateIndex);
SlewAxis(3, 4, g_eSlewRateIndex);
}
}
//0x57f98 -> 0x583d0
Expand All @@ -1055,14 +1055,14 @@ void HandleRightKey(void)
if (bData_40002c1a == 1)
{
//57ff0
SlewRaw(1, 4, SLEW_RATE_8X); //3);
SlewAxis(1, 4, SLEW_RATE_8X); //3);

bData_40002edd = 2;
}
else
{
//0x58010
SlewRaw(3, 4, SLEW_RATE_8X); //3);
SlewAxis(3, 4, SLEW_RATE_8X); //3);

bData_40002edd = 0;
}
Expand All @@ -1080,12 +1080,12 @@ void HandleRightKey(void)
if (bData_40002c1a == 1)
{
//58074
SlewRaw(1, 4, g_eSlewRateIndex);
SlewAxis(1, 4, g_eSlewRateIndex);
}
else
{
//0x58120
SlewRaw(3, 4, g_eSlewRateIndex);
SlewAxis(3, 4, g_eSlewRateIndex);
}
}
//0x58134
Expand Down
16 changes: 8 additions & 8 deletions applications/v2.3/HandleUpKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,12 +820,12 @@ void HandleUpKey(void)
if (bData_40002c1a == 1)
{
//5e3d4
SlewRaw(2, 1, g_eSlewRateIndex);
SlewAxis(2, 1, g_eSlewRateIndex);
}
else
{
//0x5e3ec
SlewRaw(4, 1, g_eSlewRateIndex);
SlewAxis(4, 1, g_eSlewRateIndex);
}
}
}
Expand All @@ -835,12 +835,12 @@ void HandleUpKey(void)
if (bData_40002c1a == 1)
{
//5e414
SlewRaw(2, 1, g_eSlewRateIndex);
SlewAxis(2, 1, g_eSlewRateIndex);
}
else
{
//0x5e42c
SlewRaw(4, 1, g_eSlewRateIndex);
SlewAxis(4, 1, g_eSlewRateIndex);
}
}
//0x5e440 -> 0x5f0b4
Expand All @@ -853,14 +853,14 @@ void HandleUpKey(void)
if (bData_40002c1a == 1)
{
//5e468
SlewRaw(2, 1, SLEW_RATE_8X);
SlewAxis(2, 1, SLEW_RATE_8X);

bData_40002edd = 3;
}
else
{
//0x5e488
SlewRaw(4, 1, SLEW_RATE_8X);
SlewAxis(4, 1, SLEW_RATE_8X);

bData_40002edd = 1;
}
Expand All @@ -878,12 +878,12 @@ void HandleUpKey(void)
if (bData_40002c1a == 1)
{
//5e414
SlewRaw(2, 1, SLEW_RATE_8X);
SlewAxis(2, 1, SLEW_RATE_8X);
}
else
{
//0x5e504
SlewRaw(4, 1, SLEW_RATE_8X);
SlewAxis(4, 1, SLEW_RATE_8X);
}
}
//0x5e514
Expand Down
6 changes: 3 additions & 3 deletions applications/v2.3/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,12 @@ char bData_4000319b; //4000319b
char g_bSingleSlewActive; //4000319c
char g_bCombinedSlewActive; //4000319d
Union_400031a0 Data_400031a0; //400031a0
Union_400031a0 Data_400031a4; //400031a4
Union_400031a0 g_stCurrentSlewRampValue; //400031a4
int Data_400031a8; //400031a8
Union_400031a0 Data_400031ac; //400031ac
int fill_400031b0; //400031b0
int Data_400031b4; //400031b4
char bData_400031b8; //400031b8
int g_iCurrentSlewRampIndex; //400031b4
char g_bMaxSlewRampActive; //400031b8
char bData_400031b9; //400031b9
char bData_400031ba; //400031ba
char bData_400031bb; //400031bb
Expand Down
6 changes: 3 additions & 3 deletions applications/v2.3/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,11 @@ extern char bData_4000319b; //4000319b
extern char g_bSingleSlewActive; //4000319c
extern char g_bCombinedSlewActive; //4000319d
extern Union_400031a0 Data_400031a0; //400031a0
extern Union_400031a0 Data_400031a4; //400031a4
extern Union_400031a0 g_stCurrentSlewRampValue; //400031a4
extern int Data_400031a8; //400031a8
extern Union_400031a0 Data_400031ac; //400031ac
extern int Data_400031b4; //400031b4
extern char bData_400031b8; //400031b8
extern int g_iCurrentSlewRampIndex; //400031b4
extern char g_bMaxSlewRampActive; //400031b8
extern char bData_400031b9; //400031b9
extern char bData_400031ba; //400031ba
extern char bData_400031bb; //400031bb
Expand Down
2 changes: 1 addition & 1 deletion applications/v2.3/file_5099c.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void func_5099c(void)
bData_400032a4_OTAZeroDataErrorCount = 0;
bData_4000319b = 0;
bData_400031e9 = 0;
bData_400031b8 = 0;
g_bMaxSlewRampActive = 0;
bData_400031b9 = 0;
Data_40002e80 = 0;
Data_40002e84 = 0;
Expand Down
Loading

0 comments on commit 3415014

Please sign in to comment.