pde file Syntax Error on Processing IDE

edited September 2014 in JavaScript Mode

I am new with processing. I found this Simultaneous Localisation and Mapping (SLAM) using processing from http://blogofrog.com/2011/02/21/slam-html5/. there is two .pde files, here the code: http://blogofrog.com/files/js/ekfslam.pde and http://blogofrog.com/files/js/matrix.pde i try to run that using cordova phonegap with processing.js library on android just work fine. but when i try to run it using processing IDE wont run because of unexpected token: { on line 46. whats happen here? do i miss something?..

thanks in advanced.



  • Those ".pde" files aren't valid Java code and hence incompatible w/ "Java Mode"! [-(

  • Line 46 is:

    Matrix Q = new Matrix({{ pow(sigmaV, 2.0), 0.0 }, { 0.0, pow(sigmaG, 2.0) }});

    As said, that's an odd mix of Java and JavaScript syntax, so it cannot work in Java mode. Try the JavaScript mode.

Sign In or Register to comment.