GithubHelp home page GithubHelp logo

Comments (6)

crosvera avatar crosvera commented on September 3, 2024 1

@rwslord Thank you so much, that worked!

Best regards

from mscl.

rwslord avatar rwslord commented on September 3, 2024

There is a setting on the device that controls the Orientation Calculation Rate. It is part of the IMU/AHRS Signal Conditioning Settings (0x0C, 0x35) command in the Data Communications Protocol.

This calculation rate needs to also be set to the same 1Hz that you are attempting to set the Delta Theta vector to. Unfortunately, MSCL does not have support for that feature at this time. Do you have access to MIP Monitor? It may be easiest (if you aren't changing rates all the time in your software) to set this value in MIP Monitor, and then save the startup settings so that resetting the device keeps your setting. If you have MIP Monitor available, I can attach a guide on how to change this setting.

On a side note, I am surprised that 64Hz worked, as I believe that is not a supported sample rate for that channel...

from mscl.

crosvera avatar crosvera commented on September 3, 2024

Thanks for the soon response. Unfortunately I have not access to MIP Monitor. But trying to pass raw command via EEPROM writing should works right? Can you tell me which parameters/values should I use?

Best regards.

from mscl.

rwslord avatar rwslord commented on September 3, 2024

You should be able to send the raw command using the Connection.write function.

The bytes should look like this:
75 65 0C 10 10 35 01 03 E8 00 03 0E 11 00 0A 00 0A 01 00 00 5E 46

from mscl.

crosvera avatar crosvera commented on September 3, 2024

ok, I'm using the following to write these bytes:

b = bytearray("75650C1010350103E800030E11000A000A0100005E46")
connection = mscl.Connection.Serial(tty, 921600)
node = mscl.InertialNode(connection)
connection.write(b)

I got: TypeError: in method 'Connection_write', argument 2 of type 'mscl::Bytes const &'.

And I'm able to write these bytes using:

ba = "75 65 0C 10 10 35 01 03 E8 00 03 0E 11 00 0A 00 0A 01 00 00 5E 46"
connection = mscl.Connection.Serial(tty, 921600)
node = mscl.InertialNode(connection)
for b in ba.split(" "):
    connection.writeStr(b)

But then, when I try to set the delta_theta channel I got:

mscl.Error_InertialCmdFailed: The Sensor Message Format command has failed.

Best regards.

from mscl.

rwslord avatar rwslord commented on September 3, 2024

The Connect.write() method takes an mscl.Bytes object as a parameter.
Try making one like this:

b = mscl.Bytes([0x75, 0x65, 0x0C, 0x10, 0x10, 0x35, 0x01, 0x03, 0xE8, 0x00, 0x03, 0x0E, 0x11, 0x00, 0x0A, 0x00, 0x0A, 0x01, 0x00, 0x00, 0x5E, 0x46])

connection.write(b)

from mscl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.