Menu

#1 Class Light return defs in cycle.cyc

open
5
2005-03-29
2005-02-11
Meggzie
No

I think the definitions of the values returned in the
Light class definition in the 0.0.2 release of cycle.cyc
are wrong.

When I converted the 'squirrel' prigram from issue 71
to cycle code I neede to change cycle.cyc to get it
to work. I found the when 1 is returned it corresponds
to equal light and when 2 is returned it is brighter on
cybot's
left side. I have attached my program.

I changed the Light class as follows:
class Light
{
// was const LEFT = 1;
const SAME = 1;
// was const SAME = 2;
const LEFT = 2;
const RIGHT = 3;

// Returns 1 (left), 2 (same), 3 (right) - Should
be 1 (same), 2 (left), 3 (right) ???
input{1,3} getStatus() : block( 10 );
}

Light light;

Discussion

  • Meggzie

    Meggzie - 2005-02-11

    Collects ball and goes to a dark place.

     
  • Meggzie

    Meggzie - 2005-02-14
    • summary: Class Light returns def. in cycle.cyc --> Class Light return defs in cycle.cyc
     
  • rhthornburrow

    rhthornburrow - 2005-03-29
    • labels: --> Robot Definition
    • assigned_to: nobody --> rhthornburrow
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.