I've not used WebGL or WebSerial before... but this came together fairly quickly.
It's been good, aside from the general "ick" that JavaScript gives me... especially when working with binary data and/or doing maths.
Accelerometer is at the top, then gyro in the middle, and magnetometer at the bottom.
The right-hand model will be a stabilised orientation, when I've got my head around all the Maths and sensor-fusion magic.
Big pain points: buffer handling (wow, yuck), and the CBOR2 module.
=> More informations about this toot | More toots from attie@chaos.social
Fly Lego heli, fly!
There is quite a bit of drift on the gyros (a known / common issue), and the accelerometer seems to often have a vector length of ~10G (not just 9.806G)...
=> More informations about this toot | More toots from attie@chaos.social
Two takeaway things from today.
First, I think I'm slowly sort of starting to understand Quaternions. Maybe. 🤯
Second, I started looking at getting the magnetometer to give useful data, and calibration (or rather removing the offset) is a big part of it... I plotted one point for every sensor reading, and wow - I didn't expect it to look so good... it's a really good-looking sphere! "Calibration" basically involves putting the center of that sphere at the origin, and I should be good to go(?!)
=> More informations about this toot | More toots from attie@chaos.social
text/gemini
This content has been proxied by September (3851b).