Menu

Some examples dont work with Floats

botNet_76
2019-02-23
2019-02-23
  • botNet_76

    botNet_76 - 2019-02-23

    I downloaded the software and tried running the Crane2D example on matlab. This works well out of the box, but as soon as we convery double to floats (in grampc_init.h) I get NaNs.. Has anyone else faced this issue?

    I am in the process of debugging this myself, but if someone else can help in the meantime, that would be appreciated!!

    Thanks

     
  • Tobias Englert

    Tobias Englert - 2019-02-23

    Hello botNet,

    if you change the datatype in grampc_init.h, you need to recompile both the example and the whole toolbox. For example, if you use the matlab interface, the command [vec,grampc] = startMPC(200,2); should work after changing the datatype.

    Best regards
    Tobias

     
  • botNet_76

    botNet_76 - 2019-02-23

    Hello Mr Englert

    Thanks for the quick reply. Remcompiling does seem to work.

    Thanks again.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.