284 karma · joined November 26, 2013
However, I typically do not change the state of the integrator the way you are doing here. I just hold the integrator state (i.e. don't update it) if the controller is limited. That way, noise on the P or D signals doesn't cause my integrator state to hop around. I may do it your way if the controller limits are changing over time for some reason.
I also always low-pass filter the D term, as you mentioned. Otherwise, the D term is just too noisy.
I often find that my P and D terms are limited by how much sensor noise I'm willing to let thru to my controller output.
The author's use of "side project" is referring to "I'm building something outside of my day job that I hope will turn into a business." IF your goal is to make money, then the author's advice is spot on. Get to MVP. Get users. Listen to them. Iterate. All the advice we hear that applies to startups, applies here.
I'd love to learn and start using Rust in our work, but we are client-project-driven, so it will be hard to justify the investment and productivity drop. I think it would make it easier to attract top talent, though things are weird in the embedded world.
In that sense, we are saying the same thing. I agree that "control" does not require voting by the board. I do assert that investors with board seats exert far more control that those without, and investors with higher equity positions exert more control than those with less. I also assert that an equity stake of 1.5% exerts very little control. Again, YC exerts _influence_ (call it control if you want) simply because of their reputation for being good at what they do, but 1.5% ownership barely changes that equation.
What on earth is the author talking about? I've never heard of self-correcting code, certainly never used it, and can't find a reasonable reference to it with a google search. Is he mistakenly referring to "Error-Correcting Code", that is, using redundancy in data storage or transmission to catch and correct for random bit flips?
Your suggestion for asides is certainly valid, and I agree would make it more useful for budding pythonistas. I just think that her focus was to introduce functional concepts, and python was simply an easy language to make the concepts concrete. I think that it's stretching the scope of the article, and therefore watering down its message, to put any additional focus on specific features of the python language.
I guess this is an example of my earlier point: I knew about map and reduce, and understood their power. However, it had not clicked for me before reading this article that they feature so prominently in functional programming because they work with functions that have no side effects.
This article was perfect for me. The "guide rope" paragraph instantly clarified and put into context all the other disjoint pieces of information that I had picked up.
I can now see how to apply these concepts in almost any language. Right away, I can see how to refactor my side-effect-riddled C++ to make it more suitable for unit tests.
I came across this piece after following a previous story on HN, and was very tempted to post it at the time, because it really helped me.
Lithium-ion batteries are perfectly safe to regen. You need to monitor the cell and pack voltages and limit regen under certain conditions, but it's well understood how to do this.
Any electric vehicle with a lithium-ion battery (and there are millions of them, from skateboards and scooters to cars and trucks) does regen braking. Without regen, you lose one of the most compelling advantages of having an electric vehicle in the first place.
In general, supercapacitors do have much better power density than batteries, but much worse energy density, making them impractical for vehicles at this point in time. There's a reason the vast majority of electric vehicles today use lithium-ion batteries.
Disclaimer: I was formerly a controls and systems engineer for a hybrid-electric vehicle company.
Not under the control of the customer, obviously.
[1] https://news.ycombinator.com/item?id=8470234
* edit: rewording for clarity
You: "But that doesn't answer the question. WHY does the air get pushed down?" They: "Because of such-and-such effect..." You: "But that doesn't answer the question. WHY does such-and-such effect happen?" They: "Because of fluid viscosity and boundary layers and navier-stokes blah blah blah..." You: "But that doesn't answer the question. WHY does fluid have viscosity?" They: "Because a such-and-such bonds between the molecules of the fluid..." You: "But WHY..."
See how it goes? Turtles all the way down.
Now, some answers to why wings work are just plain wrong (like the original wrong answer -- the Bernoulli effect). However, when one person says "Wings work because they push air down, and the air pushes the wing up", and another person yells "No, that's all wrong! It's because of <insert-fancy-effect-here>", they can both be right. They are answering the question at different levels of abstraction. They also can be right in different cases -- the source of lift for wings, and the strength of different effects, can change with wing and flow conditions (at low speeds, one effect dominates, and at high speeds, another does. At supersonic speeds, a totally new effect takes over. and so on...)
Here's my attempt at an answer aimed at an appropriate level of abstraction, though of course it is doomed to failure: - Air striking a wing is divided by the leading edge into two streams, one that flows over the top, and one that flows under the bottom.
- Assuming the wing has some positive angle-of-attack, the stream under the bottom of the wing will be deflected downward, and therefore pushes back against the bottom surface of the wing. This part is reasonably uncontroversial.
- The stream flowing over the top of the wing tends to follow the surface of the wing, even when the surface is curving down and away from the stream. Why this happens is subject to the multiple levels of abstraction problem that I mention above. If the curvature of the top surface is too severe, the flow cannot follow the surface, and it separates. This is "stall". Again, why this happens is complicated, and there are multiple effects and levels of abstraction at work, and I only understand the basic levels, so I won't try to go any further. The net result for a typical wing in typical flight conditions is that the flow over the top surface is also deflected downward.
- You can get the amount of lift on the wing by integrating the pressures over the surface of the wing or by examining the curvature introduced to the flow by the wing -- both methods will give you the same answer (and they damn well better!). This is if you have modeled the airfoil and flow in a CFD software package with a reasonably tight mesh so that you know the flow conditions at every point in space near the airfoil. Or, you can pick a standard airfoil whose properties have been determined experimentally! There are exhaustive tables of NACA airfoils to pick from. [2]
Still confused? Yeah, so am I. This is about as deep as I'm prepared to learn this topic, considering that I've given up my former life as a thermo/controls specialist in mechanical engineering, and am now trying to stuff as much understanding of software engineering and computer science into my tired brain as I can. :-)
[1] https://www.quora.com/Why-couldnt-Feynman-answer-the-questio... [2] https://en.wikipedia.org/wiki/NACA_airfoil
* edit for typos
https://en.wikipedia.org/wiki/Piercing_the_corporate_veil#Un...
I very strongly feel, like many people probably do, that I would not want to live with dementia. I would not want to live that non-life, I would not want my family to have to experience it, and I would not want to burden them with my care. In the not-unlikely event that I'm diagnosed with Alzheimer's or some other form of dementia, I would want to end my life while I'm able to competently choose to do so. I would want to do so with quick and painless drugs instead of a gun. However, assisted suicide is only legal in a handful of US states, and then only in cases of terminal illness with less than six months to live. There is nowhere in the US for an early-state dementia patient to commit assisted suicide.
It is currently legal in Switzerland to do so, and people have traveled there for that very purpose. [1] Other people have committed suicide without assistance to avoid the ravages of dementia. [2]
I'm aware of the counter-arguments to assisted suicide: that it can cross the line into euthenasia, that it makes the most vulnerable in our society even more so... but still, there has to be some way for this to be legalized.
What to do? What are some concrete proposals for how to alter existing legislation to allow assisted suicide in cases of dementia? Does anyone have personal stories that make the argument against it?
[1] http://www.bbc.com/news/health-22715363 [2] http://news.nationalpost.com/2014/09/01/ethically-this-seems...