[Sugar-devel] TA NXT plugin - cleanup and faster startup

Martin Langhoff martin.langhoff at gmail.com
Wed Mar 23 13:57:16 EDT 2011


On Wed, Mar 23, 2011 at 1:48 PM, Emiliano Pastorino
<epastorino at plan.ceibal.edu.uy> wrote:
>> One situation that is not handled well is unplugging/replugging of the
>> usb cable -- which may well happen between "runs" in a busy classroom.
>
> I was thinking just a moment ago on listening for "deviceadded" and
> "deviceremoved"
> signals from hal, hidding/unhidding nxt palette and calling find_one_brick
> only when
> necessary. Do you think this is a good approach?

I've revised my patch and now it handles disconnect-reconnect. I think
we want to always show the palette so kids can work on their program
disconnected. They can take turns to run it. This means a group of
kids can share a robot nicely.

cheers,


m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the Sugar-devel mailing list