Subversion Repositories seema-scanner

Rev

Rev 23 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 jakw 1
#include "RotationStage.h"
2
#include <iostream>
3
 
4
int main(int argc, char *argv[]){
5
 
6
    RotationStage rotationStage;
7
 
8
//    try {
9
 
10
//    } catch (char* e) {
11
//        std::cerr << "Could not create rotation stage object. " << e << std::endl;
12
//    }
13
 
15 jakw 14
//    rotationStage.moveAbsolute(360);
15
//    rotationStage.wait();
9 jakw 16
 
14 jakw 17
    std::cout << rotationStage.getAngle() << std::endl;
9 jakw 18
 
30 jakw 19
    rotationStage.moveAbsolute(5.3);
23 jakw 20
    rotationStage.wait();
21
    std::cout << rotationStage.getAngle() << std::endl;
22
 
30 jakw 23
    rotationStage.moveAbsolute(185.3);
23 jakw 24
    rotationStage.wait();
25
    std::cout << rotationStage.getAngle() << std::endl;
26
 
30 jakw 27
//    rotationStage.moveAbsolute(350.0);
28
//    rotationStage.wait();
29
//    std::cout << rotationStage.getAngle() << std::endl;
23 jakw 30
 
30 jakw 31
//    rotationStage.moveAbsolute(2.0);
32
//    rotationStage.wait();
33
//    std::cout << rotationStage.getAngle() << std::endl;
23 jakw 34
 
30 jakw 35
//    rotationStage.moveAbsolute(7.0);
36
//    rotationStage.wait();
37
//    std::cout << rotationStage.getAngle() << std::endl;
23 jakw 38
 
30 jakw 39
//    rotationStage.moveAbsolute(187.0);
40
//    rotationStage.wait();
41
//    std::cout << rotationStage.getAngle() << std::endl;
23 jakw 42
 
14 jakw 43
//    rotationStage.moveAbsolute(0.0);
44
//    rotationStage.wait();
45
 
13 jakw 46
//    for(float i=9.8345; i<40; i+=10){
47
//        rotationStage.moveAbsolute((float)i);
48
//        rotationStage.wait();
49
//        std::cout << "Position: " << rotationStage.getPosition() << std::endl;
50
//    }
9 jakw 51
 
23 jakw 52
//    for(float i=0; i<36; i++){
53
//        rotationStage.moveRelative(10.0);
54
//        rotationStage.wait();
55
//        std::cout << "Position: " << rotationStage.getAngle() << std::endl;
56
//    }
10 jakw 57
 
13 jakw 58
//    rotationStage.moveAbsolute(0);
59
//    rotationStage.wait();
60
//    std::cout << "Position: " << rotationStage.getPosition() << std::endl;
61
 
9 jakw 62
    return 0;
63
}