Lol smth

Dependencies:   LocalPositionSystem MMA8451Q Motor_Driver Sensors mbed

Fork of TDP_main_BartFork by Yelfie

Shooting_fun.cpp

Committer:
orsharp
Date:
2015-03-06
Revision:
12:bb21b76b6375

File content as of revision 12:bb21b76b6375:

//
//#include "MMA8451Q.h"
// 
//#define MMA8451_I2C_ADDRESS (0x1d<<1)
//
//
//MMA8451Q acc(PTE25, PTE24, MMA8451_I2C_ADDRESS);
//    int fire = 0;
//    while (1) {
//        fire = 0;
//        if (abs(acc.getAccY()) > 0.5f){
//            fire = 1;
//            }
//        shoot( (1.0 - abs(acc.getAccX())), fire);
//        wait(0.2);
//    }


// TESTING FOR SHOOTER
//int count = 0;
//    while (1) {
//        count = count%4;
//        if (count == 0) {
//            shoot(0.0);
//            wait(1);   
//        }    
//        else {
//        shoot (0.3*(float)count);
//        wait(0.2);
//        }
//        count ++;
//    }