This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Monday, September 10, 2007

Re: [oopic] Re: strange oLED operation, VB.net commands to SCP

dan michaels wrote:
> --- In oopic@yahoogroups.com, "dan" <dan_ruggirello@...> wrote:
>
>
>
> I don't understand why people mess with SCP when all you have to do
> is write a simple ASCII interface for the oopic. Which is easier,
> trying to decipher this "\0V42J144H36L03N", or this oopic code, by
> way of example ...
>
> ====================
> Do
> ' process incoming keypresses
> if (com1.received=1) then
> key = com1.value
> ' convert small to capital
> if (key > 97) then key = key - 32
>
> if (key=ch_S) then
> call stop ' "S"
> call play1
> end if
>
> if (key=ch_F) then call forward ' "F"
> if (key=ch_A) then call accel ' "A"
> if (key=ch_D) then call decel ' "D"
> if (key=ch_B) then call backup ' "B"
>
> if (key=ch_H) then call half ' "H"
> if (key=ch_L) then call turn_left ' "L"
> if (key=ch_R) then call turn_right ' "R"
> if (key=ch_K) then call brake ' "K"
> call report
> end if
>
> Loop
> =========================
>
>
Although an ascii interface can work to call sub-routines, it has
limitations for smooth control of a robot when operating in a closed
loop system, where 256 bit resolution is required at a 30 Hz update
rate. Furthermore the ascii byte has to be deciphered in script code,
which as we know is slow on the oopic.
Another advantage of SCP is that it runs in the background with no
effect on the object list speed when virtual circuits are being used.

SCP in my opinion is easy to use and is very slick. A few years ago I
wrote a GUI terminal for SCP which is available in the files section of
this group. The package is called SCP-Configurator and makes working
with SCP a pleasure without the sweat of having to refer to chapter 16
of the Oopic manual.

Ian



Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: