Skip to content

Commit

Permalink
intermediate commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitzbube committed Jan 23, 2021
1 parent 9f3ee94 commit c99a584
Show file tree
Hide file tree
Showing 16 changed files with 600 additions and 721 deletions.
16 changes: 8 additions & 8 deletions applications/v2.3/HandleDownKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ void HandleDownKey(void)

case MENU_CONTEXT_DEC_BKLASH_CORR: //1700:
//0x5b410: DEC Bklash Correction
bData_40003173 = 1;
bData_40003171 = 1;
bData_40003172 = 1;
bData_40003170 = 1;
g_bAlignmentFourLineMenuFocusItem = 1;
g_bAlignmentFourLineMenuTopItem = 1;
g_bAlignmentEightLineMenuFocusItem = 1;
g_bAlignmentEightLineMenuTopItem = 1;
Data_40002c64_MenuContextId = MENU_CONTEXT_ONE_STAR_ALIGN; //1100;
break;

Expand Down Expand Up @@ -235,10 +235,10 @@ void HandleDownKey(void)
case MENU_CONTEXT_TIME_DATE: //4100:
//0x5b718
HandleLongListScroll(1, 14);
Data_40002c64_MenuContextId = 4200;
Data_40002c64_MenuContextId = MENU_CONTEXT_DAYLIGHT_SAVING; //4200;
break;

case 4200:
case MENU_CONTEXT_DAYLIGHT_SAVING: //4200:
//0x5b738
HandleLongListScroll(1, 14);
Data_40002c64_MenuContextId = MENU_CONTEXT_SITE_SETTING; //4300;
Expand All @@ -247,10 +247,10 @@ void HandleDownKey(void)
case MENU_CONTEXT_SITE_SETTING: //4300:
//0x5b758
HandleLongListScroll(1, 14);
Data_40002c64_MenuContextId = 4400;
Data_40002c64_MenuContextId = MENU_CONTEXT_SKY_LAND; //4400;
break;

case 4400:
case MENU_CONTEXT_SKY_LAND: //4400:
//0x5b778
HandleLongListScroll(1, 14);
Data_40002c64_MenuContextId = MENU_CONTEXT_AZ_EQU; //4500;
Expand Down
36 changes: 15 additions & 21 deletions applications/v2.3/HandleEnterKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void HandleEnterKey(void)

switch (Data_40002f15_RecentTargetTypeArray[bData_4000316e_FocusLineOn8LineDisplay - 1])
{
case 1:
case MENU_RECENT_TARGET_SOLAR_SYSTEM: //1:
//0x531d4
bData_40003176 = 1;
bData_40003174 = 1;
Expand All @@ -126,7 +126,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 2:
case MENU_RECENT_TARGET_CONSTELLATION: //2:
//0x5321c
bData_40003176 = 2;
bData_40003174 = 1;
Expand All @@ -139,7 +139,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 3:
case MENU_RECENT_TARGET_FAMOUS_STAR: //3:
//0x53268
bData_40003176 = 3;
bData_40003174 = 1;
Expand All @@ -152,7 +152,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 4:
case MENU_RECENT_TARGET_MESSIER: //4:
//0x532b4
bData_40003176 = 4;
bData_40003174 = 1;
Expand All @@ -166,7 +166,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 5:
case MENU_RECENT_TARGET_NGC: //5:
//0x5330c
bData_40003176 = 5;
bData_40003174 = 1;
Expand All @@ -180,7 +180,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 6:
case MENU_RECENT_TARGET_IC: //6:
//0x53364
bData_40003176 = 6;
bData_40003174 = 1;
Expand All @@ -194,7 +194,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 7:
case MENU_RECENT_TARGET_SH2: //7:
//0x5345c
bData_40003176 = 7;
bData_40003174 = 1;
Expand All @@ -208,7 +208,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 8:
case MENU_RECENT_TARGET_BRIGHT_STAR: //8:
//0x534b4
bData_40003176 = 8;
bData_40003174 = 1;
Expand All @@ -222,7 +222,7 @@ void HandleEnterKey(void)
//->0x53690
break;

case 9:
case MENU_RECENT_TARGET_SAO_CAT: //9:
//0x5350c
bData_40003176 = 8;
bData_40003174 = 2;
Expand Down Expand Up @@ -295,10 +295,10 @@ void HandleEnterKey(void)

case MENU_CONTEXT_ALIGNMENT: //1000:
//0x53698
bData_40003173 = 1;
bData_40003171 = 1;
bData_40003172 = 1;
bData_40003170 = 1;
g_bAlignmentFourLineMenuFocusItem = 1;
g_bAlignmentFourLineMenuTopItem = 1;
g_bAlignmentEightLineMenuFocusItem = 1;
g_bAlignmentEightLineMenuTopItem = 1;
Data_40002c64_MenuContextId = MENU_CONTEXT_ONE_STAR_ALIGN; //1100;
break;

Expand Down Expand Up @@ -1045,10 +1045,7 @@ void HandleEnterKey(void)

Data_40003500.dwData = fabs((int) ((6.0 * dTrackingRate) / 15.04));

uart1_write_byte(0x55);
uart1_write_byte(0xaa);
uart1_write_byte(0x01);
uart1_write_byte(0x04);
UART1_WRITE_HEADER(4);
uart1_write_byte(0x41);

if (dTrackingRate > 0)
Expand All @@ -1065,10 +1062,7 @@ void HandleEnterKey(void)
uart1_write_byte(Data_40003500.bData[1]);
uart1_write_byte(Data_40003500.bData[0]);

uart1_write_byte(0x55);
uart1_write_byte(0xaa);
uart1_write_byte(0x01);
uart1_write_byte(0x04);
UART1_WRITE_HEADER(4);
uart1_write_byte(0x01);

if (dTrackingRate > 0)
Expand Down
16 changes: 8 additions & 8 deletions applications/v2.3/HandleMinusKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,17 @@ void HandleMinusKey(void)
Data_40002c64_MenuContextId = 3000;
break;

case 3600:
case MENU_CONTEXT_EYEPIECE_FOV: //3600:
//0x5fe78
Data_40002c64_MenuContextId = 3000;
break;

case 3700:
case MENU_CONTEXT_EYEPIECE_MAGN: //3700:
//0x5fe8c
Data_40002c64_MenuContextId = 3000;
break;

case 3800:
case MENU_CONTEXT_DISPLAY_ILLUMINATION: //3800:
//0x5fea0
Data_40002c64_MenuContextId = 3000;
break;
Expand Down Expand Up @@ -362,7 +362,7 @@ void HandleMinusKey(void)
//0x60080
case 360022:
//0x60088
Data_40002c64_MenuContextId = 3700;
Data_40002c64_MenuContextId = MENU_CONTEXT_EYEPIECE_MAGN; //3700;
break;

case 370021:
Expand All @@ -371,22 +371,22 @@ void HandleMinusKey(void)
//0x600a0
case 370023:
//0x600a4
Data_40002c64_MenuContextId = 3600;
Data_40002c64_MenuContextId = MENU_CONTEXT_EYEPIECE_FOV; //3600;
break;

case 3602:
//0x600b4
Data_40002c64_MenuContextId = 3600;
Data_40002c64_MenuContextId = MENU_CONTEXT_EYEPIECE_FOV; //3600;
break;

case 3801:
//0x600c8
Data_40002c64_MenuContextId = 3800;
Data_40002c64_MenuContextId = MENU_CONTEXT_DISPLAY_ILLUMINATION; //3800;
break;

case 3802:
//0x600dc
Data_40002c64_MenuContextId = 3800;
Data_40002c64_MenuContextId = MENU_CONTEXT_DISPLAY_ILLUMINATION; //3800;
break;

case 4301:
Expand Down
8 changes: 4 additions & 4 deletions applications/v2.3/HandleUpKey.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ void HandleUpKey(void)

case MENU_CONTEXT_ONE_STAR_ALIGN: //1100:
//0x5d9a4
bData_40003173 = 4;
bData_40003171 = 4;
bData_40003172 = 7;
bData_40003170 = 8;
g_bAlignmentFourLineMenuFocusItem = 4;
g_bAlignmentFourLineMenuTopItem = 4;
g_bAlignmentEightLineMenuFocusItem = 7;
g_bAlignmentEightLineMenuTopItem = 8;
Data_40002c64_MenuContextId = MENU_CONTEXT_DEC_BKLASH_CORR;
break;

Expand Down
55 changes: 30 additions & 25 deletions applications/v2.3/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ unsigned char bData_40002c14_uart1ReceiveStep; //40002c14
unsigned char bData_40002c15_uart1ReceiveHeader[4]; //40002c15
unsigned char uart1_bRxData; //40002c19
unsigned char bData_40002c1a; //40002c1a // V2.2: 40002c1e
int Data_40002c1c; //40002c1c
int Data_40002c20; //40002c20
int g_iUart0GuideValueRa; //40002c1c
int g_iUart0GuideValueDec; //40002c20
Union_40002c24 Data_40002c24; //40002c24
Union_40002c28 Data_40002c28; //40002c28
int fill_40002c2c; //40002c2c
Expand Down Expand Up @@ -219,29 +219,32 @@ char* strTelescopeAlign; //40002f20
char* strNavigation; //40002f24
char* strUtilities; //40002f28
char* strSetup; //40002f2c

char* strOneStarAlign; //40002f30
char* strTwoStarAlign; //40002f34
char* strThreeStarAlign; //40002f38
char* strTargetSync; //40002f3c
char* strPoleAxisDev; //40002f40
char* strRaBklashCorr; //40002f44
char* strDecBklashCorr; //40002f48
char* Data_40002f4c; //40002f4c
char* Data_40002f50; //40002f50
char* Data_40002f54; //40002f54
char* Data_40002f58; //40002f58
char* strAlignmentSpare1; //40002f4c
char* strAlignmentSpare2; //40002f50
char* strAlignmentSpare3; //40002f54
char* strAlignmentSpare4; //40002f58

char* strSolarSystem; //40002f5c
char* strConstellation; //40002f60
char* strFamousStar; //40002f64
char* Data_40002f68; //40002f68
char* Data_40002f6c; //40002f6c
char* Data_40002f70; //40002f70
char* Data_40002f74; //40002f74
char* Data_40002f78; //40002f78
char* Data_40002f7c; //40002f7c
char* Data_40002f80; //40002f80
char* Data_40002f84; //40002f84
char* Data_40002f88; //40002f88
char* g_pcstrMessierCatalogue; //40002f68
char* g_pcstrNGCCatalogue; //40002f6c
char* g_pcstrICCatalogue; //40002f70
char* g_pcstrSh2Catalogue; //40002f74
char* g_pcstrBrightStarCatalogue; //40002f78
char* g_pcstrSAOStarCatalogue; //40002f7c
char* g_pcstrCustomerObjects; //40002f80
char* g_pcstrInputRAandDEC; //40002f84
char* g_pcstrCustomLandGoal; //40002f88

char* strCurrentObjects; //40002f8c
char* Data_40002f90; //40002f90
char* Data_40002f94; //40002f94
Expand Down Expand Up @@ -366,10 +369,10 @@ char fill_4000316c; //4000316c
unsigned char bData_4000316d; //4000316d
unsigned char bData_4000316e_FocusLineOn8LineDisplay; //4000316e
unsigned char bData_4000316f_FocusLineOn4LineDisplay; //4000316f
unsigned char bData_40003170; //40003170
unsigned char bData_40003171; //40003171
unsigned char bData_40003172; //40003172
unsigned char bData_40003173; //40003173
unsigned char g_bAlignmentEightLineMenuTopItem; //40003170
unsigned char g_bAlignmentFourLineMenuTopItem; //40003171
unsigned char g_bAlignmentEightLineMenuFocusItem; //40003172
unsigned char g_bAlignmentFourLineMenuFocusItem; //40003173
unsigned char bData_40003174; //40003174
unsigned char bData_40003175; //40003175
unsigned char bData_40003176; //40003176
Expand Down Expand Up @@ -533,10 +536,12 @@ char* Data_40003398; //40003398
char* Data_4000339c; //4000339c
char* Data_400033a0; //400033a0
char* Data_400033a4; //400033a4
char* Data_400033a8; //400033a8
char* Data_400033ac; //400033ac
char* Data_400033b0; //400033b0
char* Data_400033b4; //400033b4

char* g_pcstrFourLineMenu1; //400033a8
char* g_pcstrFourLineMenu2; //400033ac
char* g_pcstrFourLineMenu3; //400033b0
char* g_pcstrFourLineMenu4; //400033b4

int fill_400033b8; //400033b8
int fill_400033bc; //400033bc
int fill_400033c0; //400033c0
Expand Down Expand Up @@ -569,8 +574,8 @@ double fill_40003468; //40003468
double fill_40003470; //40003470
double fill_40003478; //40003478
double fill_40003480; //40003480
int Data_40003488; //40003488
int Data_4000348c; //4000348c
int g_iAscomGuideValueRa; //40003488
int g_iAscomGuideValueDec; //4000348c
double dData_40003490; //40003490
char bData_40003498; //40003498
double dData_400034a0_SiderealTimeGreenwich0UT; //400034a0
Expand Down
Loading

0 comments on commit c99a584

Please sign in to comment.