brett
unread,Nov 12, 2009, 1:08:50 PM11/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to br-...@googlegroups.com
I'm having troubles opening Blocos files that have more than 1 motor
selected in the commands. As an example, I assembled blocks to create a
simple program that would turn on 2 motors, wait 2 seconds, and then
shut them off. The generated logo code shows:
to start
ab, on
wait 20
ab, off
end
When I save the file, the file shows both motors in the code:
<?xml version="1.0" ?><blocks><block type="startblock"><prop name="y"
type="int">10</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">1</prop><prop name="selected"
type="bool">False</prop></block><block type="onblock"><prop name="y"
type="int">49</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">2</prop><prop name="selected"
type="bool">False</prop><prop name="motorsid"
type="string">ab</prop></block><block type="waitblock"><prop name="y"
type="int">88</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">3</prop><prop name="selected"
type="bool">False</prop></block><block type="timeblock"><prop name="y"
type="int">97</prop><prop name="x" type="int">83</prop><prop
name="layer" type="int">4</prop><prop name="selected"
type="bool">False</prop><prop name="number"
type="int">20</prop></block><block type="offblock"><prop name="y"
type="int">128</prop><prop name="x" type="int">10</prop><prop
name="layer" type="int">6</prop><prop name="selected"
type="bool">True</prop><prop name="motorsid"
type="string">ab</prop></block></blocks>
But when I try to open the file again in Blocos, the "ON" block only
show motor "a" and the "OFF" block only shows motor "a". I have noticed
the same thing with the Clockwise block. Here is the generated logo
code from the above file when it is re-opened in Blocos.
to start
a, on
wait 20
a, off
end
If I only select a single motor, such as motor "B", it re-opens as motor
"B", so the problem only happens when more than 1 motor is selected. I
am using Revision 103 of Blocos.
Brett