ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
IlPalazzo-ojiisa has quit [Quit: Leaving.]
starblue1 has quit [Ping timeout: 258 seconds]
starblue1 has joined #rust-embedded
nadja has quit [Server closed connection]
nadja has joined #rust-embedded
dc740 has joined #rust-embedded
starblue1 has quit [Ping timeout: 258 seconds]
emerent has quit [Ping timeout: 258 seconds]
emerent has joined #rust-embedded
ni has quit [Server closed connection]
ni has joined #rust-embedded
<re_irc> <@monacoprinsen:matrix.org> Hello Everyone! πŸŽ‰πŸ‘‹
<re_irc> We are thrilled to announce a brand-new job opening at Maiak Technologies S.L.! πŸš€ We're on the hunt for a talented Embedded Software Engineer with expertise in Rust and the ESP32 ecosystem. πŸ’»πŸ”§
<re_irc> Do you love working with cutting-edge technology? Are you passionate about fitness and health? πŸ‹οΈβ€β™€οΈπŸ’ͺ Then we want to hear from you!
<re_irc> This role offers a chance to work with a team of dedicated professionals who are committed to pushing the boundaries of the fitness industry. You'll have the opportunity to create software for innovative fitness products that will shape the future of how we perceive and interact with fitness routines! πŸŒπŸš΄β€β™‚οΈ
<re_irc> The position is based in beautiful Spain, but we're open to discussing remote work for the right candidate. πŸ‡ͺπŸ‡ΈπŸŒ
<re_irc> Maiak Technologies is a place where you can contribute your expertise, think innovatively, and make a difference in people's lives. If this sounds like your dream job, don't hesitate, apply now! Click on the link to view the full job description and application.
<re_irc> We can't wait to hear from you! πŸ˜ŠπŸ’Ό
IlPalazzo-ojiisa has joined #rust-embedded
starblue1 has joined #rust-embedded
Ekho has quit [Server closed connection]
<re_irc> <@firefrommoonlight:matrix.org> Hi guys! Does anyone know how to use defmt to print without a newline, or skip the metadata? Thank you
<re_irc> <@firefrommoonlight:matrix.org> I want to copy something like this into a python script to plot, but the metatadata lines are screwing it up. I am using println because there is no print
<re_irc> [
<re_irc> └─ ahrs::attitude::{impl#3}::update @ C:\Users\david\code\ahrs\src\attitude.rs:270
<re_irc> (0.0, 0.0, 0.0),
<re_irc> (0.18970306, -0.33375043, -0.24378185),
<re_irc> └─ ahrs::attitude::{impl#3}::update @ C:\Users\david\code\ahrs\src\attitude.rs:272
<re_irc> └─ ahrs::attitude::{impl#3}::update @ C:\Users\david\code\ahrs\src\attitude.rs:272
<re_irc> (0.1942198, -0.33179724, -0.2552568),
<re_irc> └─ ahrs::attitude::{impl#3}::update @ C:\Users\david\code\ahrs\src\attitude.rs:272
<re_irc> (0.20020142, -0.3277688, -0.25403607),
<re_irc> ]
Ekho has joined #rust-embedded
<re_irc> <@firefrommoonlight:matrix.org> Also, I am pretty sure this G431 could plot faster than Python on my gaming PC
<re_irc> <@firefrommoonlight:matrix.org> * render plots
<re_irc> <@firefrommoonlight:matrix.org> +3d
starblue1 has quit [Ping timeout: 252 seconds]
<re_irc> <@thejpster:matrix.org> : I would use the JSON output and then write a tool to convert from the JSON to whatever format you want
<re_irc> <@thejpster:matrix.org> print doesn't make sense on a structured logging system - each call to println is its own record so will always be on its own line.
IlPalazzo-ojiisa has quit [Quit: Leaving.]
dc740 has quit [Remote host closed the connection]
<re_irc> <@firefrommoonlight:matrix.org> Thx
<re_irc> <@firefrommoonlight:matrix.org> Yea. Given it plugs into PC with USB, the proper way would be to serialize the data over it directly
<re_irc> <@firefrommoonlight:matrix.org> This was kind of a quick hack
<re_irc> <@firefrommoonlight:matrix.org> For plotting magnetometer data to assess iron offsets
<re_irc> <@firefrommoonlight:matrix.org> Ie 3d scatter of an ellipsoid
<re_irc> <@firefrommoonlight:matrix.org> Why JSON vice say, f32 serialized as bytes!
<re_irc> <@firefrommoonlight:matrix.org> * bytes?
<re_irc> <@firefrommoonlight:matrix.org> Thx !
<re_irc> <@firefrommoonlight:matrix.org> (I've been doing a lot of binary protocols lately, so maybe I jump they're with everything being a nail yo that hammer ...)
<re_irc> <@dirbaio:matrix.org> defmt does send the data as binary over the wire
<re_irc> <@dirbaio:matrix.org> it's in the PC side where stuff gets formatted to a string
<re_irc> <@dirbaio:matrix.org> printing json strings makes it easy to pipe the thing to e.g a python script that reads json lines from stdin
<re_irc> <@dirbaio:matrix.org> yes it's pointless to make the defmt decoder format it as text, and then make the python script parse it back
<re_irc> <@dirbaio:matrix.org> but all the stringy nonsense happens on the PC side, and PCs are fast :D
<re_irc> <@firefrommoonlight:matrix.org> Oh, very interesting
<re_irc> <@firefrommoonlight:matrix.org> Does sound practical
<re_irc> <@firefrommoonlight:matrix.org> The C+P from terminal was such a dirty hack
<re_irc> <@firefrommoonlight:matrix.org> : that implemention detail makes sense about why I can't print without newline
<re_irc> <@dngrs:matrix.org> so for charting I like to use postcard over usb-uart ... you can even multiplex it with defmt if you want both logs and "other data", but that's a bit more involved.
<re_irc> with WebSerial (Chrome only) it's then pretty straightforward to use e.g. d3 to visualize data and send logs to the browser console
<re_irc> <@dngrs:matrix.org> also that's an old version in the tweet which doesn't go ZOOOOOM speed, I've since fixed the performance issues