Notes
Slide Show
Outline
1
Operating Systems and Virtualization
  • An Overview
2
Layers
  • SHREK: For your information, there's a lot more to ogres than people think.
  • DONKEY: Example?
  • SHREK: Example? Okay. Uh... ogres are like onions.
  • DONKEY: They stink?
  • SHREK: Yes. No!
  • DONKEY: Oh, they make you cry?
  • SHREK: No!
  • DONKEY: Oh, you leave them out in the sun,
    they get all brown and start sprouting little
    white hairs.
  • SHREK: No! Layers! Onions have layers.
    Ogres have layers. Onions have layers.
    You get it? We both have layers.
  • DONKEY: Oh... you both have layers...
    You know, not everybody like onions.
    Cakes! Everybody likes cakes. Cakes have layers.
  • SHREK: I don't care what everyone likes. Ogres are not like cakes... You dense, irritating, miniature beast of burden. Ogres are like onions. End of story. Bye bye. See ya later...


3
Operating Systems
4
Compile – Link - Execute
5
File Extensions
6
Virtualization
7
VirtualBox
8
IDE: Code::Blocks
9
Lego Robot
10
Lego NXT Brick
11
NXT With Sensors Attached
12
NXT Simulator
13
nxtOSEK Libraries
  • #include<robot.h>
  • #include<roboTask.h>
14
Sample nxtOSEK Functions
  • lcd.clear()
    lcd.putf("s", "Hello ");
    lcd.disp();
  • motorB.setPWM(50);
  • c.wait(200);
  • if (touch1.isPressed()) { …


15
Programming the Robot
  • Write a program using the Code::Blocks IDE.
  • Build the program (cross-compile and link) using the Code::Blocks IDE.
  • Download the built program to the Brick (or the simulator)
  • Push the run button on the Brick (or the emulator) and watch the robot do its thing.