this isn't working the servo just twitches

Dependencies:   Servo mbed Motor

Revision:
0:22157cad3c1e
Child:
1:7fa77283f89e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 05 17:05:46 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "Servo.h"
+
+Servo launchservo(p21);
+DigitalIn sw3(p18);
+int launchswitch;
+int main() {
+    
+    while(1){
+    launchservo=0;
+    launchswitch=sw3.read();
+    }//hey guys when I'm testing this code the servo just twitches it doesn't rotate I don't know whats up
+            
+        
+    }
+