Re: Re: Re: Re: Re: Re: Re: Lego Mindstorms


[ Follow Ups ] [ Post Followup ] [ The Fun with Ada Project ]

Posted by David Botton on February 08, 19100 at 12:04:49:

In Reply to: Re: Re: Re: Re: Re: Re: Lego Mindstorms posted by Rush Kester on February 08, 19100 at 10:12:06:

I took a look at the site and found that MindStorm comes with an OCX control: Spirit.ocx

That is the best way for Ada to program the MindStorm stuff. If some one has the Spirit.ocx, they can send it to me and I'll create the bindings from it and see if I can put together a sample or two using it based on the OCXs documentation (PBRICK) to get every one started.

It should be very easy to program for example:

with Spirit_Interface; use Spirit_Interface;

procedure Program_ME is
Rob : Spirit_Type;
begin
DeleteAllTasks (Rob);

BeginOfTask (Rob);

SetVar (5,2,1);
SetVar (6,2,2);
uWhile (0,5,3,0,6);
SetFwd (To_BSTR ("1"));
uOn (To_BSTR ("1");

etc........ (based on the docs I saw).

David Botton


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject: Re: Re: Re: Re: Re: Re: Re: Re: Lego Mindstorms

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Fun with Ada Project ]