__________________________________________________________________ 3
__________________________________________ 4
2.1. ______________________________________________________ 4
2.2. B ____________________________________________ 5
2.3. C ____________________________________________ 5
2.4. D ____________________________________________ 6
2.5. E ____________________________________________ 7
____________________________________________________ 8
3.1. Motor _____________________________________________ 8
3.2. Position, Edit ____________ 9
3.3. ____________________________________________ 11
3.4. C, D E ________________________ 12
3.5. _________________ 13
3.6. _________________________________________ 14
3.7. __________ 19
3.8. Parameters ______________________________ 20
3.9. ___________ 21
3.10. About Motor ______________________________________ 22
_______________________________________________________________ 23
4.1. ____________________________________________ 23
4.1.1. MotorView.h ____________________________________________________ 23
4.1.2. MotorView.cpp __________________________________________________ 24
4.1.3. DlgParameters.h ________________________________________________ 30
4.1.4. DlgParameters.cpp ______________________________________________ 31
4.2. ____________________________________________________ 33
1.
, - , , , .
. , ( previous next), ( parameters) .
, , .
, , , .
|
|
.
. 2.1. |
:
:
Visual C++, : ) - , , ) , ) - , .
2.2.
. 2.2. |
:
;
.
. 2.3. |
2.3.
:
;
:
;
:
;
.
2.4.
. 2.4. |
, :
.
:
,
,
, :
.
:
;
.
2.5.
. 2.5. |
: . . , , ( , , ), , , , . . E.
3.4.
3.1. Motor
, , :
. 3.1.1. AppWizard |
1) Microsoft Visual C++ 6.0 FileàNew; New (. 3.1.1).
2) MFC AppWizard (exe).
3) Project Name (, Motor).
. 3.1.2. MFC AppWizard Visual C++ |
4) , Visual C++ AppWizard (. 3.1.2).
. 3.1.3. New Project Information MFC AppWizard |
5) Multiple Document Finish New Project Information (. 3.1.3).
6) , .
Position, Edit
. 3.2.1. |
1) (. . 3.2.1).
2) , .
3) Edit Parameters. Position : Initial, Previous, Next.
4) Menu Item Properties (. 3.2.2), Caption (Position).
. 3.2.2. |
5) .
6) . Menu Item Properties, ID :
|
|
Menu | ID Caption | ID_PARAMETERS Parameters |
Menu | ID Caption | ID_INITIAL Initial |
Menu | ID Caption | ID_PREVIOUS Previous |
Menu | ID Caption | ID_NEXT Next |
7) (. 3.2.3).
. 3.2.3. |
8) , About ( , , ), , ( , - , ). . 3.2.3.
. 3.2.4. |
9) , ID Properties. . 3.2.4.
10) , . ( Parameters , , ).
1) . MotorView.cpp.
2) , , : , , , . , . , . , , .
3) , #defune, . :
à #define PI 3.1415
à #define mn 4 //
math.h, ( ):
à #include math.h
4) :
à int Ox=200, Oy=250, // A
à Bx, By, // B
à Cx, Cy,
à Dx, Dy,
à Ex, Ey,
à AB = 6 * mn, // AB
à BC = 35 * mn, // BC
à BD = 3 * mn,
à DE = 32 * mn,
à ACx, ACy, // 1
à AEx, AEy;
à double
à a01 = 32.5 * PI/180, // 1
à a02 = 327.5 * PI/180,
à a = 0 * PI/180, //
à CBD = 75 * PI/180; // CB BD
à POINT
à KC[4], // 4- ,
à KE[4];
à int dK=13; // 2*dK -
à double aK=PI/6; // 2*aK -
, , ().