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
guardian.h@9:8dd7a76756e2, 2014-01-31 (annotated)
- Committer:
- rkk
- Date:
- Fri Jan 31 04:53:10 2014 +0000
- Revision:
- 9:8dd7a76756e2
- Parent:
- 7:e005cfaff8d1
- Child:
- 12:7eeb29892625
added more code to the sinusoidal driving
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sandwich | 2:430c068cf570 | 1 | #pragma once |
sandwich | 2:430c068cf570 | 2 | #include "mbed.h" |
sandwich | 2:430c068cf570 | 3 | #include "Servo.h" |
sandwich | 2:430c068cf570 | 4 | |
sandwich | 2:430c068cf570 | 5 | class Guardian |
sandwich | 2:430c068cf570 | 6 | { |
sandwich | 2:430c068cf570 | 7 | private: |
sandwich | 2:430c068cf570 | 8 | Servo* ail; |
sandwich | 2:430c068cf570 | 9 | Servo* mod; |
sandwich | 2:430c068cf570 | 10 | Servo* elv; |
sandwich | 2:430c068cf570 | 11 | Servo* rud; |
sandwich | 2:430c068cf570 | 12 | Servo* aux; |
sandwich | 2:430c068cf570 | 13 | Servo* gain; |
sandwich | 2:430c068cf570 | 14 | public: |
sandwich | 2:430c068cf570 | 15 | Guardian(PinName ailpin, PinName modpin, PinName elvpin, PinName rudpin, PinName auxpin, PinName gainpin); |
sandwich | 2:430c068cf570 | 16 | ~Guardian(); |
sandwich | 2:430c068cf570 | 17 | void set2D(); |
sandwich | 2:430c068cf570 | 18 | void set3D(); |
sandwich | 2:430c068cf570 | 19 | void setoff(); |
sandwich | 2:430c068cf570 | 20 | void calibrate(); |
sandwich | 2:430c068cf570 | 21 | void setail(float val); |
sandwich | 2:430c068cf570 | 22 | void setmod(float val); |
sandwich | 2:430c068cf570 | 23 | void setelv(float val); |
sandwich | 2:430c068cf570 | 24 | void setrud(float val); |
sandwich | 2:430c068cf570 | 25 | void setaux(float val); |
sandwich | 2:430c068cf570 | 26 | }; |