Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it common to use metric system when launching rockets to space or is it a peculiarity of SpaceX? I heard the speaker on SpaceX channel always referring to kilometers and kilometers per second when talking about height and speed.


It's common for pretty much all of engineering really. It's ludicrous to make calculations a bit more complicated by using weird non-SI units.

The fact that NASA managed to crash a probe into Mars because they hadn't yet learned the lesson says it all really. Just use SI units and stop worrying about it.


If anyone is curious, it looks like it was the fault of Lockheed. NASA's contract specified SI units: http://en.wikipedia.org/wiki/Mars_Climate_Orbiter


It's Lockheed Martin that still insists on using imperial units instead of SI, even after the loss of mission that confusion caused in their work with metric-using JPL on Mars Climate Orbiter.


No, the important lesson is to always label your units, and another one might be to always be careful passing dimensionful numbers between codes and teams. You can run into the same problem by accidentally even forgetting to convert between, e.g., newtons and millinewtons.


That is precisely the policy adopted by NASA, and it lead to the Mars disaster, so you are suggesting as a solution the exactly policy that caused the problem.

Furthermore, you are suggesting that the same entities--highly trained engineers and scientists and project managers--that proved inadequate to follow the policy you are suggesting last time can somehow be expected to follow the policy correctly at all times in the future.

Reducing needless complexity--in this case by enforcing a standard of common units so that when the inevitable inevitably occurs and someone forgets to label things--there is a much reduced (but still non-zero) chance of undetected mis-matches occurring.

Furthermore, it is very difficult to confuse milli-newtons with newtons even if a project was for some reason using both, because they differ by three orders of magnitude, which tends to get noticed. Whereas kilograms and pounds differ only by a factor of 2.54, which might be--and in fact has been--missed.


Are you seriously claiming that a policy of labeling and testing units caused MCO to be lost?

Have you actually studied the mishap? If labeling and verifying the units was done carefully it would have prevented the accident.

A millinewton/newton mix-up could easily occur in a case like this one, too. The particular numbers which were misinterpreted in MCO's case were often small, and I can easily believe no one noticing similar ones being a few orders of magnitude off. (I do have a hard time imagining it with MCO's particular numbers, though.) Similarly, you can be bitten by a meters/centimeters switch or accidentally using different representations of the same quantity, such as specific impulse and its corresponding characteristic exhaust velocity, which only differ by a factor of about 10 when both are expressed in SI units.

I maintain that the key lesson is to always label your units, and to test them carefully and routinely, including at interfaces. I believe that claiming that using English units (as gross as they often are) caused the failure misses the more fundamental root problem.

(Also, I'm not claiming that labeling and verifying units is easy. I emphasize it partly because it's hard. Little of our current software ecosystem includes any concept of dimensionful numbers.)


SI units don't include millinewtons, so the problem wouldn't arise. That's part of the point.

You measure mass in kg, not g, not tonnes.

You measure distance in metres. Not kilometers. Not nautical miles.

You measure time in seconds.

A Newton is a derived SI unit — 1 kg m / s^2

Incidentally, this is why engineering notation works the way it does. You pick your units and you get the significant figures from the mantissa and the descriptive prefix (giga, nano, micro, kilo, etc.) from the exponent.


The SI units absolutely include newtons and millinewtons. The derived units (http://physics.nist.gov/cuu/Units/units.html) and prefixes (http://physics.nist.gov/cuu/Units/prefixes.html) are both part of the SI.

Also, remember, people are representing these numbers on computers. Derived units are very useful—in fact they are often critical to achieving necessary accuracies using compact representations. Further, representing quantities in terms of other unique, problem-specific units is often extremely helpful for ensuring good numerical behavior.


His point (I believe) is you always need to label units regardless of system. You could have the same problems with microseconds vs nanoseconds.


Tloewald's point was that microseconds and nanoseconds are not SI base units, so standardizing on base units eliminates the ambiguity (the second alone is the SI base unit of time). Of course additional mechanisms of double and triple checking are probably still warranted to account for human fallibility.


That's fine until you start using floating point values in order to satisfy this SI fetish. (I guess you like farads and henries too.) It's much better to use fixed point and keep track of your multiplier. A sufficiently advanced type system could do this, but at some point it will require careful thinking about precision.


Using fixed point and tracking your multiplier is exactly like using floating point.


Floating point is treated differently by compilers, involves different components of the processor, generates different types of errors, and has different performance. Perhaps there is some perspective from which that proposition is true?


A perspective where one is more familiar with IEEE754 than your in-house custom fixed-point implementation of choice?

There are plenty of applications where it makes sense to do something different because you need to accommodate special hardware (e.g. FPGAs), because you want a different representation density/range, or because external policy effectively dictates the most natural format (e.g. finance). But in the absence of a pressing concrete reason to ditch 754 floats, they are BY FAR the best option for high performance, reproducible, portable, debuggable math with abundant documentation and pre-existing pools of expertise. They're far from trivial but so is the fixed-point code you would replace them with.

If someone couldn't be bothered to learn the relevant intricacies of IEEE754, why do you expect them to do a better job re-implementing the stuff on top of integer math (or picking apart the in-house attempt to do so)? Shifting from problems of the "intern forgot to reset the rounding mode" variety to the "Newton's method code erroneously terminates one cycle too early if the last bit is a 1" variety hardly seems productive.


I won't cover the ground the other response covered (implementing your own fixed point because IEEE754 isn't good enough for you is ... nutty) but the issue here is using daft units vs. using SI units, and the thinner and thinner straws people clutch at to claim that using SI units isn't simply better. Good grief.


Regardless of what you standardize, you still need to include the unit for any figure.


Yes but you eliminate errors when working within a type of unit. NASA's problem came from converting one kind of length to another. You are clutching at straws here.


Even if you label your units, you get conversion errors that can easily multiply up into something nasty that goes boom.


It's common in science in general to use Metric and not Customary. NASA is a/the notable hold out. Engineering is sometimes done in customary because of contracts and such, especially when dealing with government agencies.

While I love Customary volumes (powers of 2 base units), the rest could stand a change and am glad SpaceX is using Metric.


Is there any sort of engineering anywhere that is not done in SI units nowadays?


The US is behind on this unfortunately.


US government contracts.


Consider too that a lot of aerospace stuff is done in collaboration with other countries. No one wants to be converting vyorsts to hogsheads all the time.


The metric system contains the SI units. It is extremely commonly used in the scientific setting, due to its capacity for precision and clarity.


I've heard it's common in some of em' overseas countries.

http://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Met...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: