the fish that looks like a jet
Dependencies: ADXL345 ADXL345_I2C IMUfilter ITG3200 mbed Servo
guardian.h@2:430c068cf570, 2014-01-24 (annotated)
- Committer:
- sandwich
- Date:
- Fri Jan 24 21:55:00 2014 +0000
- Revision:
- 2:430c068cf570
- Child:
- 5:090ef6275773
all parts working
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 | }; |