My modifications/additions to the code

Dependencies:   ADXL345 ADXL345_I2C IMUfilter ITG3200 Servo fishgait mbed-rtos mbed pixy_cam

Fork of robotic_fish_ver_4_8 by jetfishteam

Committer:
sandwich
Date:
Tue Jan 28 23:59:21 2014 +0000
Revision:
5:090ef6275773
Parent:
2:430c068cf570
Child:
7:e005cfaff8d1
added interrupts

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sandwich 2:430c068cf570 1 #pragma once
sandwich 2:430c068cf570 2 #include "mbed.h"
sandwich 2:430c068cf570 3 #include "Servo.h"
sandwich 5:090ef6275773 4 #include "rtos.h"
sandwich 2:430c068cf570 5
sandwich 2:430c068cf570 6 class Guardian
sandwich 2:430c068cf570 7 {
sandwich 2:430c068cf570 8 private:
sandwich 2:430c068cf570 9 Servo* ail;
sandwich 2:430c068cf570 10 Servo* mod;
sandwich 2:430c068cf570 11 Servo* elv;
sandwich 2:430c068cf570 12 Servo* rud;
sandwich 2:430c068cf570 13 Servo* aux;
sandwich 2:430c068cf570 14 Servo* gain;
sandwich 2:430c068cf570 15 public:
sandwich 2:430c068cf570 16 Guardian(PinName ailpin, PinName modpin, PinName elvpin, PinName rudpin, PinName auxpin, PinName gainpin);
sandwich 2:430c068cf570 17 ~Guardian();
sandwich 2:430c068cf570 18 void set2D();
sandwich 2:430c068cf570 19 void set3D();
sandwich 2:430c068cf570 20 void setoff();
sandwich 2:430c068cf570 21 void calibrate();
sandwich 2:430c068cf570 22 void setail(float val);
sandwich 2:430c068cf570 23 void setmod(float val);
sandwich 2:430c068cf570 24 void setelv(float val);
sandwich 2:430c068cf570 25 void setrud(float val);
sandwich 2:430c068cf570 26 void setaux(float val);
sandwich 2:430c068cf570 27 };