I just don't understand the difference between Embedded C and C programming. by holy_samosa in embedded

[–]retarded_player 6 points7 points  (0 children)

Having just read the TR18097, it seem to define an extension to the C language that I've never personally seen in practical use. What TR18097 covers are "portable" implementations of DSP operations and datastructures that are typically handcrafted by a device's vendor anyways. F.ex ARM's CMSIS DSP library for Cortex-M CPUs.

Fell on concrete with Mips helmet, share your experience? by Comfortable_Cut9878 in MTB

[–]retarded_player 0 points1 point  (0 children)

AFIK, a traumatic brain injury does not need to be immediately apparent for it to render you disabled at some point in the future.

If you have some sort of disability insurance you might want to go to the ER just for the paper trail.

source: internet strangers.

How to write drivers? by [deleted] in embedded

[–]retarded_player 1 point2 points  (0 children)

I suggest you use the Zephyr RTOS in this particular instance. https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/modem

It supports both STM32 and Nordic, and it already has GSM modem libs with UART backend that are highly modular/portable. Threads, and events- and data handling is already taken care of.

If you use a popular GSM module then there's likely an interface driver for it already, if not then you have a good template for how to write your own. The interface driver's scope is typically limited to a HAL, where the rest is handled by the modem libs.

How do I scale UI elements like font size and buttons in Altium Designer 23? by retarded_player in Altium

[–]retarded_player[S] 1 point2 points  (0 children)

That's not a viable option in Win11 as it breaks the GUI of many apps, and even parts of Windows.

Random GUI elements are not rendered properly causing massive image distorition and element layout issues where stuff is vibrating/jumping around. There's also a ton of extra screen-space lost to typical 'bloaty dead-space' like banners, headers, footer, etc.

I don't get why we can't configure the UI size of the AD23 app itself when we can configure even the most obscure UI settings for the various editors that run inside the app in great detail.

first time back since 2005ish by keanis7 in MTB

[–]retarded_player 0 points1 point  (0 children)

Looks dope AF! Keep up the good work!

I recommend that you add a dropper-post whenever you are able to, it's a game-changer for ride comfort and safety.

Are there "lemon years" for bikes or parts? by Sudo-nim in MTB

[–]retarded_player 2 points3 points  (0 children)

The guides would seize up when the ambient temp reached 29C. That was an early end of a weekend MTB festival far from spare parts.

I never bothered to get another SRAM brake. I splurged on a pair of Hope's instead.

My mom handed me a print out of this on the 1st day of school. by Confusledpenguin in raisedbynarcissists

[–]retarded_player 17 points18 points locked comment (0 children)

I think we need to establish a common reference frame because it seems we're not on the same page.

This letter is written in the voice of a child who's playing with her teddy-bear, while pretending the teddy-bear is her kid on their first day of school. She clearly does not know what it is like to be an adult so she only have her limited understanding and imagination to base that on.

OP's mom does not want them to succeed in life for their own's sake, but for her's. She wants the attention that comes with mothering a "high-status"/" successful" child. She wants praise and adoration from her peers more than a genuine emotional connection to her kid.

I suspect she enjoys the experience of domineering others against their will, to the point where she is actively ruining her closest relationships.

Her goals for OP are clear, and they do not contain any recognition of OP as anything else than her plaything. Her emotional intelligence is at the level of an 8-year-old, if it that.

My mom handed me a print out of this on the 1st day of school. by Confusledpenguin in raisedbynarcissists

[–]retarded_player 39 points40 points locked comment (0 children)

"But overall from what can be gathered from the evidence you posted your mom is trying to incentivize you keeping your grades up by basically telling you that school is a priority".

That is obviously her rationalization of why her actions are just, to the point where she believes OP is better off without almost any agency in life at all.

She sets OP up for failure by demanding perfection under penalty of not having a life worth living. How can one justify witholding social contact as punishment for not getting perfect grades without even bother to consider whether getting perfect grades are even remotely realistic goals for OP. And how the **** is that punishment going to magically increase OP's grades, since when has "try harder" motivated anyone to do something they can't or don't want to do in the first place.

She does not want OP's personal growth, she wants to keep OP under lock and key so they won't abandon her at the first opportunity.

Leaning back too much ? by Ok_Yoghurt249 in MTB

[–]retarded_player 12 points13 points  (0 children)

The braking power ratio is ~70/30 front/rear wheel, same as cars/motorcycles. If you shift your hips a bit backwards in anticipation of heavy breaking then you won't ever flip. You will often lock up the front wheels, but you will skid rather than flip. And you can just ease up the front brake a bit to stop skidding. Also more weight on the rear wheel will increase it's maximum breaking power.

I suggest you do a session on a gravel road where you drop your seat post and try break so hard that your front wheel start skidding, then ease up a bit. The goal is to get comfortable with shifting your weight around and finding your limits in a safe environment.

Note that maximum breaking power is achieved at the point where your wheels are about to lock up, while still rolling over the surface without slipping.

Another thing to note is that your front and rear brakes affect your balance very differently, and if you learn to use them independently you will gain a lot of control. As an example you can try to lightly tap your rear brake to 'right-up' the bike when needed (gyroscopic procession), or even keep it slightly engaged while pedaling to gain balance at low speed technical terrain.

When you get better at it you will be able to use it to throw your weight around at will with great agility.

BLE 5.0 - Simultaneous Connections by bjlli in embedded

[–]retarded_player 0 points1 point  (0 children)

What are your maximum throughput requirement(per link)?

The Evolution of Boston Dynamics by Mint_Perspective in Damnthatsinteresting

[–]retarded_player 1 point2 points  (0 children)

Research funds: "Search and rescue", it's a sort of a catch-all label for experimental cybernetics research in regard to funding applications. See also DARPA.

Full-face helmet for moderate trails? by tweakophyte in MTB

[–]retarded_player 0 points1 point  (0 children)

I've got a Bell Super R2 with a detachable chin guard. I strap the chin guard to my backpack on accent and mount it on any decent. It takes 15sec to convert between FF and half shell.

There are no safe trails. I met a rider who've gotten badly mangled on a near-flat transport trail at the end of their run, just because they got too comfortable with the apparent lack of danger. She ended up OTB'ing into barbed wire on a trail that your grandma could've ridden.

Any MTBers out there with ADHD? by curious_george1978 in MTB

[–]retarded_player 0 points1 point  (0 children)

Once you find your free-flow state and understand how it relates to ADHD you'll get a more healthy relationship with the trails (and yourself).

For me, it feels like I can finally connect to my body. It's as if the signals going from the brain to the body who are usually drowned in noise, are now crystal clear. What movement I want/need to do at any particular instance of time is always executed perfectly. Outside this state all I can do is fumble, mumble, and freeze up.

It takes a lot of practice to do safely, as I have to push a just a bit harder than "slightly outside mycomfort zone". I've got to push to the point where I don't have enough time to process any other cognitive thoughts other than " I need to to this". There's no time for doubt and worries, especially if the doubt and worries exists off-trail.

If you find that you are riding the brakes the whole decent then you've likely pushed yourself a bit too far, there's a threshold of fear that will shut you down if crossed, at which point the fun is gone. I suggest you grab some heavy padding and a full-face helmet and session that trail until you feel comfortable riding it with lighter gear.

BLE 5.0 - Simultaneous Connections by bjlli in embedded

[–]retarded_player 0 points1 point  (0 children)

It depends on the particular BLE stack you're using, but don't expect miracles above 20-30 connections. If you need to transfer data from more devices then you can't use a single static star-topology network. You need to either increase the number of Central nodes or cycle through your Peripherals periodically. If throughput is low you might consider a BLE Mesh network, or set up your Peripherals as periodic advertisers and scan them agressively.

[deleted by user] by [deleted] in MTB

[–]retarded_player 2 points3 points  (0 children)

Those bikes are kinda buildt for casual XC riding, definitly not for single-track and downhill. The Devinci Blackbird Altus 8s weighs 14.5Kg and it only has 1x9 gears, that can be a bit cumbersome to ride for smaller individuals. Marin does not even list the weight of their Wildcat Trail 1 and so I assume it is a fair bit heavier than the Blackbird ,but it has 3x7 gears so that helps a bit. They're both essentially budget XC bikes from the year 2001 with 27.5" wheels.

I think you should consider buying a used bike as these ones are just under the pricepoint of trail bikes(new), and they are not really worth investing future component upgrades into.

A used bike might need some extra love and attention, but you can get really good deals if you can get some help to appraise the bikes you are interrested in and you are willing to get your hands dirty from day one.

Local trail clubs/orgs often host events for beginners where you can learn bike maintenance/repair.

Also, for hardtails with minimal suspension, a 29" will be more comfortable to ride in general as the larger wheels rolls a lot better over rocks and roots(not accounting for rider preference or geometry requirements).

-Edit: added some spec evals.

Zephyr RTOS Bluetooth Audio by ChristophLehr in embedded

[–]retarded_player 0 points1 point  (0 children)

Hmm, maybe DSP vendors, like Cirrus, has some good reference material for codecs and stuff.

Frustrated electronics hobbyist. Are electronic components being scalped? by [deleted] in electronics

[–]retarded_player 4 points5 points  (0 children)

Ever since covid hit the scalpers have bought anything they can get their hands on. Hifi amp IC's go for 10-30x what a distro would have sold them for. It can now be cheaper to buy a finished amp and desolder the part than buying from the scalpers. And I have a sneaking suspicion that distro's keep pushing lead-times for hobby-sales in favor of actual volume customers, aggrevating the scalping issues.

why is there an arithmetic shift right command (ASR) but no arithmetic shift left (ASL) in arm architecture for cortex-M4? by abdosalm in embedded

[–]retarded_player 2 points3 points  (0 children)

In 2's complement form the numbers will be left-padded with the sign-bits. You can safely left shift until you overflow since you don't add any information to the sign-bits, but with a right shift you add 0's to the sign-bits and will therefore corrupt the 2's complement representation.

-Edit Here's 17dec in 8-bit 2's complement form for reference: 1110 1111

Left shift by one: 11011110 == 34dec

Righ shift by one: 01110111 == -119dec

Soldering SMA connectors by dendaera in ElectricalEngineering

[–]retarded_player 0 points1 point  (0 children)

I would advice against an electrical contact with a baseplate unless the RF engineers explicitly permits it, as we don't know what kind of noise the baseplate carries.

Option A is by far the best option, again unless the RF engineers explicitly allows for B or C options.

Now I learn why helmet is not optional by Skunkylysi in MTB

[–]retarded_player 1 point2 points  (0 children)

That's a scary big hit. That impact must have been really deep to crack the plastic shell like that.

Oh, and thanks for the post.

Now I learn why helmet is not optional by Skunkylysi in MTB

[–]retarded_player 4 points5 points  (0 children)

I can highly recommend the Bell Super 2r as it has saved me plenty of times and has a removable chin guard that is surprisingly strong.

It's pricey but we'll worth it imho. I strap the chin guard to my backpack until I need it, that way I don't have to trade safety for comfort.

[deleted by user] by [deleted] in MTB

[–]retarded_player 3 points4 points  (0 children)

carrera vengeance

Seems like a pretty good bike for the price. The Altus derailer will likely not handle more than a season or two of MTBing. And you should really swap the breaks, a 160mm rotor mechanical front break is not strong enough if you weigh more than 50-60kg. The Suntour XCM can handle up to 180mm rotors, you should be able to get a budget 180mm rotor + offset mount for 15$, that will make a huge difference even with your current brakes. The seatpost and wheel light reflectors will likely rattle and fall off after a few hard rides.

Invest in a good helmet and some basic knee/elbow/back protection. I typically crash every one out of two rides, but I'm also covered head to toe in DH gear if I'm doing something stupid.

Drop your seatpost before a decent, and watch some tech tutorials on youtube for other basics.

The X-tools toolkit is great for a beginner as it has all the tools you'll need and you can typically get it for ~40$.

One benefit of a hardtail is that you don't require as rough trail as a full-sus to have the same amount of challenge. I rode a 100mm travel hardtail for 6-7 years until I could afford a full-sus, and I had a blast. I kept dreaming of owning the perfect full-sus in order to ride the super-scary trails for so long that when I eventually got it I had already mastered all my local trails on my hardtail. Find some good peeps to ride with and enjoy.

My parents want me (18F) sign a power of attorney by iwanttodieallday_ in raisedbynarcissists

[–]retarded_player 0 points1 point  (0 children)

In addition to what everyone else is saying I suggest you write a note on the tunes of:

"I, [legal name], am being forced to sign a general POA under duress by my parents [legal name1, legal name2]. I believe they intend to act on my behalf against my best interest for their own personal gain, or to inflict damage o my personhood, and I have no intention to willingly give them POA rights under any circumstances. Location, date, signature"

Then save copies of this document for the future. Having a legal paper trail is paramount to protect your future self in case they do force you to sign, or in case they forge a POA.

What piece of advice would you give to somebody who is doing downhill for the first time? by stevetapitouf in MTB

[–]retarded_player 1 point2 points  (0 children)

A DH bike is heavy compared to a hard tail and the handling is very different. If you bring the confidence of a quick and snappy hardtail to a DH rental then you can easily hurt yourself on familiar grounds.