From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Safe Units Handling in Ada
Date: 22 May 2002 12:37:30 -0400
Date: 2002-05-22T16:44:25+00:00 [thread overview]
Message-ID: <u8z6cjfzp.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3CEB7124.4050604@blancolioni.org
Fraser <newsfraser@blancolioni.org> writes:
> Ah, the best-laid plans. The 'or' feature doesn't work, and the logic
> was sloppy. So here's a new version which fixes that.
>
> http://blancolioni.org/ada/macks/macks-0.0.2-src.tar.gz
> http://blancolioni.org/ada/macks/macks-0.0.2-src.zip
Ok, I'll give that a try.
I've done some thinking about how this will integrate with my Robotics
code, and I'll need Cartesian vectors with units. I currently have:
type Cart_Index_Type is (x, y, z);
type Cart_Vector_Type is array (Cart_Index_Type) of Real_Type;
function "*" (Left, Right : in Cart_Vector_Type) return
Cart_Vector_Type;
etc.
Now I'll have to have Meters_Cart_Vector_Type and
Velocity_Cart_Vector_Type, etc, with associated operations. Time will
remain a scalar :).
Any thoughts on extending macks to output that?
I like the origin of "macks"; it warms my physics nerd heart :). Be
sure to put it in the package somewhere.
--
-- Stephe
next prev parent reply other threads:[~2002-05-22 16:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 10:01 Safe Units Handling in Ada Fraser Wilson
2002-05-21 14:21 ` Pat Rogers
2002-05-21 15:58 ` Stephen Leake
2002-05-22 8:32 ` Fraser
2002-05-22 10:21 ` Fraser
2002-05-22 16:37 ` Stephen Leake [this message]
2002-05-23 10:16 ` Fraser
2002-05-23 16:03 ` Stephen Leake
2002-05-22 22:44 ` William C. Brennan
2002-05-23 8:55 ` Russ
2002-05-23 9:28 ` Fraser
2002-05-23 10:03 ` martin.m.dowie
2002-05-23 10:24 ` Fraser
2002-05-23 11:03 ` martin.m.dowie
2002-05-23 15:57 ` Dan Andreatta
2002-05-23 16:15 ` Fraser Wilson
2002-05-23 16:48 ` martin.m.dowie
2002-05-23 9:04 ` Russ
2002-05-23 10:01 ` Fraser Wilson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox