Comments (6)
@rwslord Thank you so much, that worked!
Best regards
from mscl.
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.
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.
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.
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.
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)
- node connection (WSDA-200-USB with node adress 57233) HOT 2
- Problem using 3DMCV7-AHRS with Raspberry Pi 3B+ HOT 3
- 3DM-GV7-AHRS Supported Commands and Pulling RPY
- Failed to read the Model Number (EEPROM 46) from Node HOT 2
- Datalog Download from Nodes fail despite generous amount of retries and timeouts
- Read ed estract data from device with script python
- [3DM-CV7-AHRS] Serial communication with raspberry pi using usb cable
- 3DM CV7-AHRS activate trigger HOT 2
- 3DMGQ7 cdc_adm: failed to set dtr/rts, then Error: Failed to communicate with device
- [3DMCV7-AHRS] PPS in GPIO setup HOT 2
- 3DMCV7-AR with setSensorToVehicleRotation_matrix issue HOT 1
- GNSS Heading Updates API call failure
- Raspberry pi5 | ImportError: /_mscl.so: ELF load command address/offset not page-aligned HOT 2
- Error: openssl related issue
- gv7 question HOT 4
- [Question] transmitRate and number of channels in SG-Link-200-OEM
- Support for BeiDou Ephemeris
- How can I use the MSCL C++ library on an ARM Cortex M4 microcontroller?
- Using Communication protocol command sets HOT 3
- question about getting "CH_FIELD_SENSOR_RAW_GYRO_VEC"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mscl.