rjframe has quit [Quit: Leaving]
emerent has quit [Ping timeout: 272 seconds]
emerent has joined #rust-embedded
<re_irc> <@j​amesmunns:m​atrix.org> https://docs.rs/esb/0.1.0/esb/ :D
<re_irc> <@t​halesfragoso:m​atrix.org> Still using generic-array :/ I should really take some time to update it
<re_irc> <@t​halesfragoso:m​atrix.org> Or maybe re-do it with async, hmm
<re_irc> <@j​amesmunns:m​atrix.org> I need to update bbqueue still :p
<re_irc> <@f​irefrommoonlight:m​atrix.org> holy cow jamesmunns
<re_irc> <@f​irefrommoonlight:m​atrix.org> I was wondering how I was going to port the C lib
<re_irc> <@j​amesmunns:m​atrix.org> Thank thalesfragoso, who wrote the lib :D
<re_irc> <@f​irefrommoonlight:m​atrix.org> What a bro
<re_irc> <@t​halesfragoso:m​atrix.org> It's been a while since I last used it though, I think James used it a lot
<re_irc> <@t​halesfragoso:m​atrix.org> It isn't really a port though, it behaves way different than the C lib
<re_irc> <@t​halesfragoso:m​atrix.org> I mean, it the api is different, in the rf sense it behaves the same :)
<re_irc> <@f​irefrommoonlight:m​atrix.org> sweet. I'll give yours a go
<re_irc> <@f​irefrommoonlight:m​atrix.org> Do you have any examples?
<re_irc> <@f​irefrommoonlight:m​atrix.org> OPh nvm - sep repository
<re_irc> <@t​halesfragoso:m​atrix.org> Yeah, there are some link to a repo in the docs
<re_irc> <@t​halesfragoso:m​atrix.org> I suggest starting at that docs page, it explain some timing configuration that is important
<re_irc> <@f​irefrommoonlight:m​atrix.org> Thank you!
<re_irc> <@f​irefrommoonlight:m​atrix.org> I have a second nRF DK on the way to practice comm between the two
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 272 seconds]
emerent has quit [*.net *.split]
ni has quit [*.net *.split]
zBeeble42 has quit [*.net *.split]
zBeeble42 has joined #rust-embedded
emerent has joined #rust-embedded
ni has joined #rust-embedded
GenTooMan has quit [*.net *.split]
Lumpio- has quit [*.net *.split]
Shell has quit [*.net *.split]
wose has quit [*.net *.split]
Shell has joined #rust-embedded
Lumpio- has joined #rust-embedded
GenTooMan has joined #rust-embedded
wose has joined #rust-embedded
Ekho has quit [*.net *.split]
hifi has quit [*.net *.split]
hifi has joined #rust-embedded
Ekho has joined #rust-embedded
inara has quit [*.net *.split]
Amanieu has quit [*.net *.split]
re_irc has joined #rust-embedded
Rondom_ has joined #rust-embedded
Amanieu has joined #rust-embedded
inara has joined #rust-embedded
Darius has joined #rust-embedded
mrkajetanp has joined #rust-embedded
fabic has joined #rust-embedded
<re_irc> <@n​ihal.pasham:m​atrix.org> just a quick check - can anyone confirm if this PR works- https://github.com/rust-lang/cargo/pull/9030, been trying to add a build target in cargo.toml for a while but cargo just keeps ignoring it with a warning.
tokomak has joined #rust-embedded
fabic has quit [Ping timeout: 245 seconds]
<re_irc> <@9​names:m​atrix.org> cargo-features = ["per-package-target"]
<re_irc> <@9​names:m​atrix.org> that's an unstable feature. i got it to work by adding
<re_irc> <@9​names:m​atrix.org> to the package section and building with nightly
<re_irc> <@9​names:m​atrix.org> default-target = "[mytarget]"
<re_irc> <@9​names:m​atrix.org> to the top of my cargo.toml, then adding
<re_irc> <@9​names:m​atrix.org> https://github.com/rust-lang/cargo/issues/9406
<re_irc> <@9​names:m​atrix.org> this is assuming i haven't completely misunderstood what you're trying to do and what that PR does :S
<re_irc> <@n​ihal.pasham:m​atrix.org> ahh ok. thank you. I'm guessing the same goes `rustflags`
fabic has joined #rust-embedded
fabic has quit [Ping timeout: 240 seconds]
<re_irc> <@l​achlansneff:m​atrix.org> @adamgreig think I could get away without a magnetometer?
<re_irc> <@a​damgreig:m​atrix.org> my rough guess is "yes"
<re_irc> <@a​damgreig:m​atrix.org> downside is you won't have any absolute roll reference
<re_irc> <@a​damgreig:m​atrix.org> if your guidance is just "remain vertical during powered ascent" then it probably doesn't matter anyway
<re_irc> <@l​achlansneff:m​atrix.org> Yeah, that’s really what I’m aiming for now
<re_irc> <@l​achlansneff:m​atrix.org> I wouldn’t be able to control the roll anyhow
<re_irc> <@a​damgreig:m​atrix.org> well, even without roll control it means you don't know which angle to pitch if you want to move towards a horizontal target
<re_irc> <@a​damgreig:m​atrix.org> but you can just tell it "you always start off with a roll of 0=north" and align it on the launch pad and integrate gyro roll thereafter, probably good enough for a few seconds of burn
<re_irc> <@l​achlansneff:m​atrix.org> I guess I’ll see
<re_irc> <@a​damgreig:m​atrix.org> (also aiming for horizontal targets is a bit scary, just keeping it vertical is probably nicer...)
<re_irc> <@a​damgreig:m​atrix.org> no doubt you'll want to change loads of things after the first few flights anyway. otoh magnos are pretty small and cheap so just sticking one on an extra spi bus doesn't seem like much work even if you ignore the data
<re_irc> <@l​achlansneff:m​atrix.org> Well that’s the thing, I’m having trouble finding one
<re_irc> <@a​damgreig:m​atrix.org> if you don't have roll control then you'll probably start rolling during motion and then you can't really do better than straight up anyway
<re_irc> <@a​damgreig:m​atrix.org> the https://www.digikey.com/en/products/detail/melexis-technologies-nv/MLX90393ELW-ABA-012-SP/6605735 I linked to last time has gone from 32 in stock to 8 in stock but it's still in stock
<re_irc> <@l​achlansneff:m​atrix.org> Oh, okay, didn’t see that before
<re_irc> <@l​achlansneff:m​atrix.org> I’ll buy one or two, thank you
<re_irc> <@l​achlansneff:m​atrix.org> Crap, the MCU I was going to buy is out of stock
<re_irc> <@a​damgreig:m​atrix.org> urgh
Foxyloxy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<re_irc> <@r​yan-summers:m​atrix.org> Welcome to all the supply chain meetings lately :')
<re_irc> <@f​irefrommoonlight:m​atrix.org> It's frustrating
<re_irc> <@f​irefrommoonlight:m​atrix.org> I'm now production-limited on an IC multiplexer :/
<Lumpio-> At this rate there will be absolutely no chips left by next year
<Lumpio-> None
<re_irc> <@d​khayes117:m​atrix.org> Sounds like a good time for a silicon startup? LOL 🤣
fabic has joined #rust-embedded
<re_irc> <@r​uabmbua:m​atrix.org> At least I get paid for integrating new ICs into old products 😅
fabic has quit [Ping timeout: 248 seconds]
jackneill has joined #rust-embedded
fabic has joined #rust-embedded
Foxyloxy has joined #rust-embedded
fabic has quit [Ping timeout: 240 seconds]
Foxyloxy has quit [Client Quit]
Foxyloxy has joined #rust-embedded
<re_irc> <@k​istlin:m​atrix.org> hello, can someone help me with calling a c library?buffer: *mut ::std::os::raw::c_void
<re_irc> <@k​istlin:m​atrix.org> it takes a "buffer: *mut ::std::os::raw::c_void"
<re_irc> <@k​istlin:m​atrix.org> ho to allocate memory for it to put the bytes to that location?
<re_irc> <@n​ewam:m​atrix.org> ```rs
<re_irc> <@n​ewam:m​atrix.org> Something like that
<re_irc> <@n​ewam:m​atrix.org> buf.as_ptr() as *mut c_void
<re_irc> <@n​ewam:m​atrix.org> let buf: [u8; 2] = [0; 2];
<re_irc> <@k​istlin:m​atrix.org> hmm seems simple :) thank you. but i need a dynamic size. a vector should work i'll try it.
<re_irc> <@k​istlin:m​atrix.org> thanks worked perfectly. i used `let buffer: Vec<u16> = vec![0; bytes_required];` to later convert it to a string `String::from_utf16(&buffer)`
<re_irc> <@b​urrbull:m​atrix.org> `buffer.as_mut_slice() as *mut c_void`
<re_irc> <@k​istlin:m​atrix.org> yes this one works too and i changed `let buffer` to `let mut buffer`
<re_irc> <@k​istlin:m​atrix.org> is there an advantage in your version?
<re_irc> <@k​istlin:m​atrix.org> i guess it's cleaner because `as_mut_*` tells about the intention?
<re_irc> <@b​urrbull:m​atrix.org> they are identical
<re_irc> <@j​atsekku:m​atrix.org> Few days ago, I was tring to get oled ssd1306 working and it is but not properly, today I changed OLED and PCB and still same problem which is very strange btw
<re_irc> <@b​urrbull:m​atrix.org> what pins you use for i2c?
<re_irc> <@j​atsekku:m​atrix.org> tried pb6 and pb7 and also pb8 pb9
<re_irc> <@j​atsekku:m​atrix.org> shortly after reset I see the part of first line "Hello worl", but still there is pixel grid and Helllo Rust is shifted to the right
<re_irc> <@b​urrbull:m​atrix.org> f4?
<re_irc> <@j​atsekku:m​atrix.org> stm32f103c8t6 or rather CH32f103c8t6
<re_irc> <@j​atsekku:m​atrix.org> But I also tried with arduino as stm32f103 and it was working fine
<re_irc> <@b​urrbull:m​atrix.org> it's strange. examples from ssd1306 crate wokr fine on my f103
tokomak has quit [Read error: Connection reset by peer]
<re_irc> <@j​atsekku:m​atrix.org> okey, I find my last PCB with original STM32F103 and it's working fine... It's quite interesing anyway that arduino binary compiled for STM32F103 is working, but under rust it's not :/
<Lumpio-> Shouldn't be very surprising, it's different code
<Lumpio-> There can be bugs
<re_irc> <@b​urrbull:m​atrix.org> i2c in f103 has a lot of hacks
<re_irc> <@b​urrbull:m​atrix.org> it can work different on non original chip
<re_irc> <@j​atsekku:m​atrix.org> yeah, aparently it is
<re_irc> <@a​lmindor:m​atrix.org> this seems pretty useful for embedded data sharing https://www.reddit.com/r/rust/comments/p5f78s/ghostcell_separating_permissions_from_data_in_rust/
creich_ has joined #rust-embedded
creich has quit [Ping timeout: 248 seconds]
<re_irc> <@d​khayes117:m​atrix.org> PhantomData, GhostCell.... I'm looking forward to ZombieLifetimes haha. Seriously though, that is pretty cool.
<re_irc> <@a​lmindor:m​atrix.org> oh not the ZombieLifetimes, you can never get rid of those :D
<re_irc> <@d​khayes117:m​atrix.org> exactly :)
<re_irc> <@d​khayes117:m​atrix.org> Only head shots can take them out of scope
fooker has joined #rust-embedded