An unauthorized modular native mode kernel for the LEGO Mindstorms.">
 
 
 contributor
legOS

legOS, the: [unauth, unoff] independent LEGO Mindstorms OS. Offers preemptive multitasking, energy saving, dynamic memory management, POSIX semaphores, native access to display, buttons, IR communication, motors and sensors.

 
  Patches Against legOS-0.1.6
Makefile.patch   This is a patch against the makefile to hunt down the correct location of the toolchain. It assumes that you are using GNU make. You will need to grab util/where-is-the-toolchain.pl as well.
sensor-shift.patch   This is a patch against direct-sensor.c and direct-sensor.h to correct a minor shortcoming in the handling of sensor values. Most of this patch has been incorporated into version 0.1.7 of legOS. Sensor values were being shifted 6 bits at runtime for no good reason. This shifting was being done in the rotation sensor code where it did not benefit humans. If you really want to work with 0-1023 values (instead of the native 0-65535 values), you can use the new ds_scale() and ds_unscale() macros.