Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Lib_Cntrl AHRS Lib_Misc
Sources/Read_Xtern_Sensors.h@1:d8c9f6b16279, 2019-10-09 (annotated)
- Committer:
- altb2
- Date:
- Wed Oct 09 13:47:43 2019 +0000
- Revision:
- 1:d8c9f6b16279
Newly designed CopterCode Okt 2019, based on Quadcopt_QK2, this Version flies in Stabilized mode, Alt hold not tested yet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 1:d8c9f6b16279 | 1 | #ifndef READ_XTERN_SENSORS_H_ |
altb2 | 1:d8c9f6b16279 | 2 | #define READ_XTERN_SENSORS_H_ |
altb2 | 1:d8c9f6b16279 | 3 | |
altb2 | 1:d8c9f6b16279 | 4 | #include "Signal.h" |
altb2 | 1:d8c9f6b16279 | 5 | #include "data_structs.h" |
altb2 | 1:d8c9f6b16279 | 6 | #include "PX4Flow.h" |
altb2 | 1:d8c9f6b16279 | 7 | #include "TFMini_i2c.h" |
altb2 | 1:d8c9f6b16279 | 8 | |
altb2 | 1:d8c9f6b16279 | 9 | |
altb2 | 1:d8c9f6b16279 | 10 | extern DATA_Xchange data; |
altb2 | 1:d8c9f6b16279 | 11 | |
altb2 | 1:d8c9f6b16279 | 12 | |
altb2 | 1:d8c9f6b16279 | 13 | class Read_Xtern_Sensors |
altb2 | 1:d8c9f6b16279 | 14 | { |
altb2 | 1:d8c9f6b16279 | 15 | public: |
altb2 | 1:d8c9f6b16279 | 16 | Read_Xtern_Sensors(float); |
altb2 | 1:d8c9f6b16279 | 17 | virtual ~Read_Xtern_Sensors(); |
altb2 | 1:d8c9f6b16279 | 18 | void init_loop(void); |
altb2 | 1:d8c9f6b16279 | 19 | void start_loop(void); |
altb2 | 1:d8c9f6b16279 | 20 | |
altb2 | 1:d8c9f6b16279 | 21 | |
altb2 | 1:d8c9f6b16279 | 22 | private: |
altb2 | 1:d8c9f6b16279 | 23 | |
altb2 | 1:d8c9f6b16279 | 24 | Signal signal; |
altb2 | 1:d8c9f6b16279 | 25 | Thread thread; |
altb2 | 1:d8c9f6b16279 | 26 | Ticker ticker; |
altb2 | 1:d8c9f6b16279 | 27 | void loop(void); |
altb2 | 1:d8c9f6b16279 | 28 | void sendSignal(); |
altb2 | 1:d8c9f6b16279 | 29 | I2C i2c; |
altb2 | 1:d8c9f6b16279 | 30 | PX4Flow optical_flow; |
altb2 | 1:d8c9f6b16279 | 31 | TFMini_i2c tfmini_1; |
altb2 | 1:d8c9f6b16279 | 32 | float Ts; |
altb2 | 1:d8c9f6b16279 | 33 | |
altb2 | 1:d8c9f6b16279 | 34 | }; |
altb2 | 1:d8c9f6b16279 | 35 | #endif |