Changeset 926 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 09/10/01 14:32:27 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MCosy.cc
r925 r926 125 125 ZdAz MCosy::GetSePos() 126 126 { 127 const int p0 = f Alt1->GetPos();128 const int p1 = f Alt2->GetPos();127 const int p0 = fZd1->GetPos(); 128 const int p1 = fZd2->GetPos(); 129 129 const int p2 = fAz->GetPos(); 130 130 … … 362 362 else 363 363 if (fabs(vt->Az()) > 0.9*vraz) 364 { 365 lout << "Warning: Azimuth speed limit exceeded. Limiting speed to 90% max." << endl; 364 366 vt->Az(0.9*vraz*sgn(vt->Az())); 367 } 365 368 366 369 if (sgn(vt->Zd()) != sgn(vcalc.Zd()) && … … 369 372 else 370 373 if (fabs(vt->Zd()) > 0.9*vrzd) 374 { 375 lout << "Warning: Altitude speed limit exceeded. Limiting speed to 90% max." << endl; 371 376 vt->Zd(0.9*vrzd*sgn(vt->Zd())); 377 } 372 378 } 373 379 … … 568 574 case WM_PRESET: 569 575 cout << "WM_Preset: start." << endl; 570 f Alt1->SetPreset();571 f Alt2->SetPreset();576 fZd1->SetPreset(); 577 fZd2->SetPreset(); 572 578 fAz->SetPreset(); 573 579 cout << "WM_Preset: done. (return 0xaffe)" << endl; … … 588 594 cout << "Got Zd: " << sepos.Zd() << " Az: " << sepos.Az() << endl; 589 595 590 f Alt1->SetPreset(za.Zd());591 f Alt2->SetPreset(-za.Zd());596 fZd1->SetPreset(za.Zd()); 597 fZd2->SetPreset(-za.Zd()); 592 598 fAz->SetPreset(za.Az()); 593 599 … … 759 765 do 760 766 { 761 phca1 = f Alt1->PosHasChanged();762 phca2 = f Alt2->PosHasChanged();767 phca1 = fZd1->PosHasChanged(); 768 phca2 = fZd2->PosHasChanged(); 763 769 phcaz = fAz->PosHasChanged(); 764 770 usleep(1); … … 786 792 // FIXME: I cannot take the avarage 787 793 // 788 time.Zd((f Alt1->GetMjd()+fAlt2->GetMjd())/2.0);794 time.Zd((fZd1->GetMjd()+fZd2->GetMjd())/2.0); 789 795 time.Az(fAz->GetMjd()); 790 796 … … 823 829 // Update Gui, foremer MTGui. 824 830 // 825 f Alt1->DisplayVal();826 f Alt2->DisplayVal();831 fZd1->DisplayVal(); 832 fZd2->DisplayVal(); 827 833 fAz->DisplayVal(); 828 834 … … 874 880 // Create Nodes 875 881 // 876 fMac1=new Macs(1, lout); 877 fMac2=new Macs(2, lout); 878 fMac3=new Macs(3, lout); 879 fAlt1=new ShaftEncoder(4, lout); 880 fAlt2=new ShaftEncoder(5, lout); 881 fAz =new ShaftEncoder(6, lout); 882 fMac1=new Macs(1, "Mac.1/Az", lout); 883 fMac2=new Macs(2, "Mac.2/Zd", lout); 884 fMac3=new Macs(3, "Mac.3/Az-Sync", lout); 885 886 fZd1=new ShaftEncoder(4, "SE.4/Zd1", lout); 887 fZd2=new ShaftEncoder(5, "SE.5/Zd2", lout); 888 fAz =new ShaftEncoder(6, "SE.6/Az", lout); 882 889 883 890 // … … 887 894 SetNode(fMac2); 888 895 SetNode(fMac3); 889 SetNode(f Alt1);890 SetNode(f Alt2);896 SetNode(fZd1); 897 SetNode(fZd2); 891 898 SetNode(fAz); 892 899 … … 899 906 900 907 fAz->SetDisplay(fWin->GetLabel1()); 901 f Alt1->SetDisplay(fWin->GetLabel2());902 f Alt2->SetDisplay(fWin->GetLabel3());908 fZd1->SetDisplay(fWin->GetLabel2()); 909 fZd2->SetDisplay(fWin->GetLabel3()); 903 910 904 911 lout.SetOutputGui(fWin->GetLog(), kTRUE); … … 930 937 931 938 delete fAz; 932 delete f Alt2;933 delete f Alt1;939 delete fZd2; 940 delete fZd1; 934 941 delete fMac1; 935 942 delete fMac2; -
trunk/MagicSoft/Cosy/main/MCosy.h
r924 r926 50 50 51 51 private: 52 ShaftEncoder *f Alt1;53 ShaftEncoder *f Alt2;52 ShaftEncoder *fZd1; 53 ShaftEncoder *fZd2; 54 54 ShaftEncoder *fAz; 55 55
Note:
See TracChangeset
for help on using the changeset viewer.