Kodingan untuk sistem atas. Silahkan di edit dan dibuat seoptimal mungkin

Dependencies:   Motor Servo mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
Sufa
Date:
Thu Nov 10 15:12:44 2016 +0000
Parent:
0:0ae8cd6754d2
Commit message:
Program Launcher

Changed in this revision

lonch.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/lonch.cpp	Mon Oct 31 13:36:59 2016 +0000
+++ b/lonch.cpp	Thu Nov 10 15:12:44 2016 +0000
@@ -1,7 +1,15 @@
-/* Made by SF101 */
-/* 29/10/2016 */
-/* KRAI 2017 */
-/* Control the Launcher... */
+///////////////////////////////// LAUNCHER CODE v1.4 //////////////////////////////////
+///////////////////////////Made by Everyone in KRAI 2017///////////////////////////////
+////////////////////////////////Bandung, 10 Nov 2016///////////////////////////////////////
+///////////////////////////Feel free to edit and upgrade it///////////////////////////
+
+//Supporting People
+// 1. Gustav Aditya Permana
+// 2. Fransiskus Hendri
+// 3. Sulhan Fauzi
+// 4. Joshua
+// 5. Daniel Steven Doxazo
+// 6. Muhammad Fathoni
 
 // Library
 #include "Motor.h"
@@ -11,20 +19,19 @@
 
 //Deklarasi Fungsi yang digunakan
 // Motor :: Fungsi -- Nama fungsi -- (pwm, forward, reverse)
-// Motor :: Fungsi -- Nama fungsi -- (pwm, vcc, gnd)
+// Servo :: Fungsi -- Nama fungsi -- (pwm, vcc, gnd)
 
 Motor motor1 (PA_8, PC_12, PB_7);
 Motor motor2 (PA_9, PA_13, PC_13);
 Motor motor3 (PA_10, PA_14, PC_14);
 Motor motor4 (PA_11, PA_15, PC_15);
 
-Servo servo1 (PB_8);
-Servo servo2 (PC_8);
-Servo servo3 (PB_9);
-Servo servo4 (PC_9);
-Servo servo5 (PB_6);
-Servo servo6 (PC_6);
-
+Servo servo1 (PA_0); // (PWM2/1)
+Servo servo2 (PA_1); // (PWM2/2)
+Servo servo3 (PB_10); // (PWM2/3)
+Servo servo4 (PC_9); // (PWM3/4)
+Servo servo5 (PC_8); // (PWM3/3)
+Servo servo6 (PC_6); // (PWM3/1)
 
 
 // Deklarasi Variabel Global & Konstanta
@@ -33,7 +40,7 @@
 float sudut_min = 60;
 float sudut_max = 90;
 
-
+// Main Function
 int main (void) {
     
     while (1) {