|
Pardon my ignorance. What is "STL"? I only know STL as a geometry format standard.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
The Standard Template Library. Basically the "runtime library" for C++ (not really a runtime lib but serves the same purpose as those do in other languages)
Check out my IoT graphics library here:
https://honeythecodewitch/gfx
|
|
|
|
|
Got it.
I am old school C programmer, but have been trying to learn C++.
Thanx
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
checked out your website. I have seen it before. VInterest red text on black background. Makes it appear almost 3D. I don't have any arduino hardware. But it's got me interested. Thanx
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
What do you believe to be the root cause of your problem? It sounds like your code is trampling memory. If so, using statically allocated memory could still result in crashes. This kind of bug is hard to find but must be found and fixed. Could the heap implementation itself have a bug? Could a race condition from multi-threading or work done at interrupt level be corrupting the heap?
|
|
|
|
|
I doubt it's anything that complicated. I suspect some foolery in either my lifetime management or somehow, somewhere I'm not copying memory correctly.
At one point - after I ported some of it to use the STL, I needed to pull pointers out of a vector to pass to a function, but that concerned me due to the potential for the vector reallocating, even though I called reserve() - I don't trust the inner machinations of the STL and it's too much to remember all of its intricacies.
Instead I went back to my tried and true new/delete and stashing pointers in my simple_vector class. I don't think that's the problem.
However, there's a lot of spinning plates to balance. Incoming serial data can cause a lot of deallocations and reallocations, and while that is NOT happening while my on_paint callbacks are being summoned, it still makes me nervous.
In the end I'm thinking of a total rewrite of the firmware to see if I can make it more cohesive. I have some ideas.
Check out my IoT graphics library here:
https://honeythecodewitch/gfx
|
|
|
|
|
Time to bring out your rubber duck!
|
|
|
|
|
I traced the code to a routine in my graphics library. I think. I've just run it down and am trying to verify (without a debugger LOL)
Also without much reliable in the way of spew because I'm already using the serial port for communication. I've half bodged a logging system into it, but everything has to be working right for it to function, and i can't get stack traces out of dumps using this.
Check out my IoT graphics library here:
https://honeythecodewitch/gfx
|
|
|
|
|
honey the codewitch wrote: Instrument my code for heap testing.
I never did embedded stuff.
But I did use memory leak testing a lot. Just because, even with discipline, I figured I might have missed something. Reducing the testing to libraries with that in place with unit testing (I use that term very loosely - test the entire library and not just units) allows one to simplify the scope and be more sure of the stability.
Leak is also used loosely. A leak library can test for actual leaks, overwrites, underwrites, unallocated writes, etc.
|
|
|
|
|
A new account posting to a report ... his reply[^] .. could it be...
Also se this post[^]
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
This the Lounge, I think you mean to go to Spam & Abuse.
|
|
|
|
|
I posted here as the spammer was watching.
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
You're surely not paranoid Graeme?
|
|
|
|
|
These aren't the spammers you are looking for.
You can go about your business.
Move along. Move along.
|
|
|
|
|
Do not forget to move the fingers in front of his face...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello all,
We got a new car a week ago, and we are struggling to find the best way to park it in the company garage, no parking slots defined (no painting on the floor), two cars till the last week parked there, now three cars must be parked.
Everybody is open to move the cars.
Do you know of any free solution to find te best position for the three cars given car sizes, the garage size, columns placement and garage door size and placement? Does something like that exist?
Thank you all!
|
|
|
|
|
You've been working with robots too long , drive into the car park and park in any available space - Simples
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
For only 3 cars, I would just get a copy of the architects' drawing for the garage, cut out paper to scale to represent the cars, and see if they can be made to fit without overlap. If you can't spot a good arrangement by eye, I wouldn't risk parking 3 cars in there.
Why spend time and effort on learning a new software package?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Yeah or a whiteboard with magnetic tiles cut to car-size in scale
Or a can of paint, for the floor.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
I do that everytime I am moving to another flat with my furniture...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Joan M wrote: Do you know of any free solution to find te best position for the three cars given car sizes, the garage size, columns placement and garage door size and placement? Does something like that exist? This sounds like a sitcom episode.
Jeremy Falcon
|
|
|
|
|
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
You will need to know all of the turning radii in addition to the length/width.
Just because cardboard cut-outs might fit, doesn’t prove that you could actually maneuver the cars into those positions.
Consider back-in versus pull-in as the turns and entry/exit for the driver will be different. (In other words, consider passengers’ doors almost touching)
When moving the various cut outs around, be sure to make the appropriate motor noise out loud.😛
|
|
|
|
|
|
First one in, last one out?
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|