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@25:4f2f441eceec, 2014-07-11 (annotated)
- Committer:
- sandwich
- Date:
- Fri Jul 11 14:30:36 2014 +0000
- Revision:
- 25:4f2f441eceec
- Parent:
- 12:7eeb29892625
latest revision
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: |
| rkk | 12:7eeb29892625 | 8 | Servo mod, gain; |
| sandwich | 2:430c068cf570 | 9 | public: |
| rkk | 12:7eeb29892625 | 10 | Guardian(PinName modpin,PinName gainpin); |
| rkk | 12:7eeb29892625 | 11 | void set2D(); |
| rkk | 12:7eeb29892625 | 12 | void set3D(); |
| rkk | 12:7eeb29892625 | 13 | void setoff(); |
| rkk | 12:7eeb29892625 | 14 | void calibrate(); |
| rkk | 12:7eeb29892625 | 15 | void setmod(float val); |
| rkk | 12:7eeb29892625 | 16 | void setgain(float val); |
| sandwich | 2:430c068cf570 | 17 | }; |
