ユースケース変更後に試験を行いましたが,レビュー後に再び変更する可能性があります
bundle_photo_data_downlink.h@0:393297a738c5, 2017-09-03 (annotated)
- Committer:
- yousei
- Date:
- Sun Sep 03 01:05:38 2017 +0000
- Revision:
- 0:393297a738c5
?????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yousei | 0:393297a738c5 | 1 | #include "type_define.h" |
yousei | 0:393297a738c5 | 2 | #include "mbed.h" |
yousei | 0:393297a738c5 | 3 | |
yousei | 0:393297a738c5 | 4 | #define DEBUG |
yousei | 0:393297a738c5 | 5 | #ifdef DEBUG |
yousei | 0:393297a738c5 | 6 | #define bpdd_debug_printf(...) printf(__VA_ARGS__) |
yousei | 0:393297a738c5 | 7 | #else |
yousei | 0:393297a738c5 | 8 | #define bpdd_debug_printf(...) (void)0 |
yousei | 0:393297a738c5 | 9 | #endif |
yousei | 0:393297a738c5 | 10 | |
yousei | 0:393297a738c5 | 11 | class BPDD |
yousei | 0:393297a738c5 | 12 | { |
yousei | 0:393297a738c5 | 13 | public: |
yousei | 0:393297a738c5 | 14 | bool bundle_photo_data_downlink(u8* uart_data); |
yousei | 0:393297a738c5 | 15 | void photo_info_sending(void); |
yousei | 0:393297a738c5 | 16 | void photo_data_AFSK_sending(void); |
yousei | 0:393297a738c5 | 17 | void photo_data_GFSK_sending(void); |
yousei | 0:393297a738c5 | 18 | |
yousei | 0:393297a738c5 | 19 | BPDD(); |
yousei | 0:393297a738c5 | 20 | |
yousei | 0:393297a738c5 | 21 | private: |
yousei | 0:393297a738c5 | 22 | bool flag_BPDD; |
yousei | 0:393297a738c5 | 23 | //フラグ,この処理の中で1度送信を行っているか判断するためのフラグ,block数,SDが異常かのフラグ |
yousei | 0:393297a738c5 | 24 | bool permit[4]; |
yousei | 0:393297a738c5 | 25 | //カメラ許可/不許可 |
yousei | 0:393297a738c5 | 26 | uint8_t camera_id; |
yousei | 0:393297a738c5 | 27 | //ダウンリンクするカメラ番号(0~3) |
yousei | 0:393297a738c5 | 28 | uint8_t downlink_num; |
yousei | 0:393297a738c5 | 29 | //コマンドで指定された送信回数 |
yousei | 0:393297a738c5 | 30 | uint8_t downlink_cnt; |
yousei | 0:393297a738c5 | 31 | //実際の送信回数 |
yousei | 0:393297a738c5 | 32 | uint8_t com_style; |
yousei | 0:393297a738c5 | 33 | //通信方式 |
yousei | 0:393297a738c5 | 34 | uint8_t save_data_id; |
yousei | 0:393297a738c5 | 35 | //画像保存データID(0~9) |
yousei | 0:393297a738c5 | 36 | int readout_block_num; |
yousei | 0:393297a738c5 | 37 | //読み出しが完了したブロック数 |
yousei | 0:393297a738c5 | 38 | int send_cnt; |
yousei | 0:393297a738c5 | 39 | //パケット |
yousei | 0:393297a738c5 | 40 | int num_repeat; |
yousei | 0:393297a738c5 | 41 | //画像データを何回送信したか |
yousei | 0:393297a738c5 | 42 | int total_cnt; |
yousei | 0:393297a738c5 | 43 | //1コマンドで行う全てのループ回数 |
yousei | 0:393297a738c5 | 44 | uint8_t size; |
yousei | 0:393297a738c5 | 45 | //目的の画像の容量 |
yousei | 0:393297a738c5 | 46 | int block_num; |
yousei | 0:393297a738c5 | 47 | }; |