Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MCLMain {
- public static void main (String args []) {
- MCL mcl = new MCL(1000, 25.0);
- mcl.initialise();
- //update(double deltax, double sensor, double uncertainty)
- mcl.update(0.0, 48.0, 0.2); // 15
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- mcl.update(0.0, 48.0, 0.2);
- for(int i=0; i<100; i++){
- mcl.update(0.0, 48.0, 0.2);
- System.out.println(mcl.expPosition());
- }
- System.out.println();
- mcl.printSamples();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement