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
<firefrommoonligh> Also, if anyone wants hot-takes on how to code AHRS in Rust, lmk
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
kericsson has joined #rust-embedded
kenny has quit [Ping timeout: 245 seconds]
crabbedhaloablut has joined #rust-embedded
kericsson has quit [Read error: Connection reset by peer]
corecode_ has joined #rust-embedded
Rahix_ has joined #rust-embedded
Rahix has quit [*.net *.split]
whitequark[cis] has quit [*.net *.split]
corecode has quit [*.net *.split]
whitequark[cis] has joined #rust-embedded
kenny has joined #rust-embedded
corecode_ is now known as corecode
<ryan-summers[m]> <firefrommoonligh> "More rust flight controller..." <- > <@firefrommoonlight:matrix.org> More rust flight controller; changed up the control scheme so it holds attitude... but still flies like rate controls bc the RC input changes the target attitude. Should make feeding into the autopilot smooth.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/jxhbhOGxxOSKnotHWjVswioP>)
Socke has quit [Ping timeout: 246 seconds]
cr1901_ has joined #rust-embedded
cr1901 has quit [Ping timeout: 248 seconds]
starblue has quit [Ping timeout: 248 seconds]
starblue has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
<thejpster[m]> Mara is thinking about a new binary-size WG … https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Binary.20size.20working.20group
<timokrgr[m]> yes please!
emerent has quit [Ping timeout: 245 seconds]
tr09[m] has joined #rust-embedded
<tr09[m]> Hi, anybody good with smoltcp? I’ve implemented a phy::Device but when polling interface RxToken is always demanded, even though I’ve received 0 bytes and can’t really construct it. Why isn’t my Device’s transmit method called instead?
emerent has joined #rust-embedded
kericsson has joined #rust-embedded
<whitequark[cis]> i designed it; does that mean i'm good at it?
<whitequark[cis]> if you have nothing to receive, return None from Device::receive()
<whitequark[cis]> the interface first receives, then transmits, so once you signal you have nothing to receive, you might get a frame to transmit
<tr09[m]> Catherine: perhaps I’m misusing tcp socket then, because it receives a packet, presents data in a .recv and *apparently* endlessly tries to ack it and never progresses. If the connection is closed from server side, remaining data is provided normally.
<thejpster[m]> https://github.com/rust-lang/rfcs/pull/3470 is very cool if you want your Rust bootloader (or BIOS) to talk to your Rust application (or OS).
<tr09[m]> I say apparently because poll_delay returns whatever I set socket ack delay to be
<whitequark[cis]> <thejpster[m]> "https://github.com/rust-lang/..."; <- this is so cool
<whitequark[cis]> <tr09[m]> "Catherine: perhaps I’m misusing..." <- do you have code I can look at?
<tr09[m]> <whitequark[cis]> "do you have code I can look at?" <- One moment
<jessebraham[m]> I frankly don't really understand it or the motivation behind it, so will need to read through the comments in more details. Honestly kind of with Bjoern right now though, doesn't really seem like something that belongs in the HAL to me, but maybe I'm just missing something here.
<jessebraham[m]> Not sure if I'll get to it today so I can try to take a look next week
cr1901__ has joined #rust-embedded
cr1901_ has quit [Ping timeout: 246 seconds]
* tr09[m] posted a file: Akin's Laws of Spacecraft Design.webarchive (208KiB) < https://catircservices.org/_matrix/media/v3/download/matrix.org/IZbDDlgjkSZjBdWtJGsDrjkX >
<tr09[m]> <whitequark[cis]> "do you have code I can look at?" <- I hope I removed the right things
<whitequark[cis]> thanks
<whitequark[cis]> that looks reasonable to me at first glance
<tr09[m]> As I mentioned, it starts issuing (in this configuration) 999 delays but never attempts to get an TxToken
<whitequark[cis]> can you enable verbose logging?
<whitequark[cis]> that will show all of the TCP state transitions
<whitequark[cis]> ideally a packet tracer too
<tr09[m]> Maybe. This is currently on bare metal and semihosting takes ages.
<tr09[m]> I’ll need to try setting up logging over serial or single step it. Thanks for now!
marmrt[m] has joined #rust-embedded
<marmrt[m]> Log over RTT!
<tr09[m]> Ha, this device does have eink, but that might be on the same level as semihosting. Serial over Bluetooth?
<ryan-summers[m]> Use RTT. It's way faster
<tr09[m]> By RTT do you mean something over SWDIO or just serial?
<ryan-summers[m]> RTT is a protocol developed by Segger called "Real-Time Transfer. It uses a ring buffer in RAM that firmware and the debug probe read from
<ryan-summers[m]> So it's super fast because the debug probe is just reading target memory, the only actual overhead for your firmware is formatting it into the ring buffer
<ryan-summers[m]> probe-rs, probe-run, probe-rs-cli and the like all have native support for it and it makes it super easy to use
<ryan-summers[m]> And if you use defmt on top of it, logging is even lower overhead
<M9names[m]> regarding my C lib linking issue, adding "-mlong-calls" was all that was needed, and for my use-case enabling it has no performance impact.
<M9names[m]> thanks for the help y'all
<JamesMunns[m]> good fix! where did you pass that?
<M9names[m]1> As a .flags() call off of cc::build in my build.rs file
<firefrommoonligh> <ryan-summers[m]> "> <@firefrommoonlight:matrix.org..." <- Scratch-ish; built on top of the Knurling tools, STM32 PACs, and RTIC. Yep, re FPV quad. Going to try a larger quad next (Currently 3"; 5" next). I have a lot of WIP fixed-wing code too, but want to get all systems working on the quad first. Next up is a waypoint system; first with heading indications on the OSD, then fly-to-waypoint autopilot.
<firefrommoonligh> Currently having mystery IO issues on the GPS... Puzzling since I have a working standalone CAN AHRS/GPS device with a similar MCU, same GPS chip, and the same code...
adinack[m] has joined #rust-embedded
<adinack[m]> <firefrommoonligh> "More rust flight controller..." <- > <@firefrommoonlight:matrix.org> More rust flight controller; changed up the control scheme so it holds attitude... but still flies like rate controls bc the RC input changes the target attitude. Should make feeding into the autopilot smooth.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/cuDPXMowJIRwjcaLoIOSYsLT>)
calisti[m] has joined #rust-embedded
<calisti[m]> <firefrommoonligh> "More rust flight controller..." <- > <@firefrommoonlight:matrix.org> More rust flight controller; changed up the control scheme so it holds attitude... but still flies like rate controls bc the RC input changes the target attitude. Should make feeding into the autopilot smooth.... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/WxYcqmPJSYBaYtLBAVHfqhyo>)
kenny has quit [Quit: WeeChat 4.0.2]
kenny has joined #rust-embedded
<firefrommoonligh> So RN it does not fly nearly as well/smoothly as BF
<adinack[m]> well i'm sure everyone will agree, we're all rooting for you
<firefrommoonligh> But I think the PC configuration/status checks/setups etc are simpler/easier. With teh important note that it's hard-coded to run on 2 boards
<firefrommoonligh> I'd like to move everything to CAN only in the future for flexibility
K900 has quit [Quit: Idle timeout reached: 172800s]
<firefrommoonligh> I think the trouble with BF (And, more-so AP and PX4) is they cater to such a large range of hardware and use cases, you get code and UIs/config that is very complex, and has growing hardware (mainly flash space) requirements
<firefrommoonligh> So I'm trying to keep that under control by not supporting arbitrary hardware
cputoast[m] has quit [Quit: Idle timeout reached: 172800s]
cr1901__ is now known as cr1901
fuse117[m] has quit [Quit: Idle timeout reached: 172800s]
kericsson has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kericsson has joined #rust-embedded
kericsson has quit [Client Quit]
romancardenas[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has quit [Quit: Leaving.]
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
burrbull[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
crabbedhaloablut has quit []
IlPalazzo-ojiisa has quit [Quit: Leaving.]