Help a smooth-brain w/ some style tips #4537
-
Hi there. Long time user (on my Taranis, at least), first time contributor (well, in progress). I've dug a bit for a style guide and have come up short. Maybe there are zero cares & one of the jobs tidies things up to conform to some standard, or maybe there aren't many cares at all, especially when it comes to the shell scripts (which is likely where any of my substantive contributions would initially be). For context, I've done a lot of bash plumbing in my day & some more elegant things as well, but mostly ops-y toil & custodial things to support embedded SWEs (automation in SCM land & dev endpoints) and aero wizards (think wind tunnel, but only real wind is behind the racks of the cluster nodes), and also more boring internet-scale stuff that never held a candle to working in aerospace. I'd like to contribute to etx and would like to start off on the right foot. I'm sick of letting my X10S Express go another three years unused now that I'm doing some INAV rover work, and due to a sensory incompatibility (for me) w/ EdgeTX on the X10S Express, I've been using ETHOS under duress, and would like to stop doing so. (It's not a bad OS per se, but there are many reasons I'd rather use EdgeTX, and ETHOS handles the LCD backlight "correctly" and, imho, perfectly). So back to the point: is there some style guide I'm missing? Is there one (maybe this one) that is adopted, at least loosely? This is as far as I could get w/r/t contributing to the ETHOS "source" by the way, other than providing feedback of course for source I can't actually alter... a repo for feedback? INACTIVITY FOR LONG TIME? sensor lost sensory overload?!?! F THIS! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
More the merrier. If you're thinking of getting started with something, join us on in the Otherwise, we probably still somewhat follow this loosely : https://github.com/opentx/opentx/wiki/OpenTX-Code-Style-Guide Due to the age of the code, sometimes it's just a matter of fitting in with the existing structure of the code, or if you're in the mood for it, re-writing and modernising whole chunks of it to take benefit of new C++ structures and capabilities. As far as the shell scripts... from my perspective... as long as they work, are understandable enough, and ShellCheck approves... I'm happy 🤭 |
Beta Was this translation helpful? Give feedback.
More the merrier. If you're thinking of getting started with something, join us on in the
#dev
channel on the EdgeTX Discord server. We also have a regular voice/video chat on Discord to catch up with everyone working on the project and see how things are going, and help if get stuck. Otherwise, for code formatting, we generally use the Google Cpp styling... per https://github.com/EdgeTX/edgetx/blob/main/.clang-formatOtherwise, we probably still somewhat follow this loosely : https://github.com/opentx/opentx/wiki/OpenTX-Code-Style-Guide
Due to the age of the code, sometimes it's just a matter of fitting in with the existing structure of the code, or if you're in the mood for it, re-writi…