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.
Config.h@0:d60c26d5fddc, 2016-09-14 (annotated)
- Committer:
- youle1119
- Date:
- Wed Sep 14 08:55:41 2016 +0000
- Revision:
- 0:d60c26d5fddc
tiz
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| youle1119 | 0:d60c26d5fddc | 1 | #include "mbed.h" |
| youle1119 | 0:d60c26d5fddc | 2 | #include "Error.h" |
| youle1119 | 0:d60c26d5fddc | 3 | |
| youle1119 | 0:d60c26d5fddc | 4 | #ifndef __CONFIG_H__ |
| youle1119 | 0:d60c26d5fddc | 5 | #define __CONFIG_H__ |
| youle1119 | 0:d60c26d5fddc | 6 | |
| youle1119 | 0:d60c26d5fddc | 7 | class Config |
| youle1119 | 0:d60c26d5fddc | 8 | { |
| youle1119 | 0:d60c26d5fddc | 9 | private: |
| youle1119 | 0:d60c26d5fddc | 10 | char __filename[50]; |
| youle1119 | 0:d60c26d5fddc | 11 | int32_t __acc_offset[3]; |
| youle1119 | 0:d60c26d5fddc | 12 | int32_t __gyo_offset[3]; |
| youle1119 | 0:d60c26d5fddc | 13 | int32_t __mag_offset[3]; |
| youle1119 | 0:d60c26d5fddc | 14 | |
| youle1119 | 0:d60c26d5fddc | 15 | public: |
| youle1119 | 0:d60c26d5fddc | 16 | Config(char *filename); |
| youle1119 | 0:d60c26d5fddc | 17 | void write(); |
| youle1119 | 0:d60c26d5fddc | 18 | void set_acc_offset(int a[3]); |
| youle1119 | 0:d60c26d5fddc | 19 | void set_ayo_offset(int a[3]); |
| youle1119 | 0:d60c26d5fddc | 20 | void set_mag_offset(int a[3]); |
| youle1119 | 0:d60c26d5fddc | 21 | ~Config(); |
| youle1119 | 0:d60c26d5fddc | 22 | }; |
| youle1119 | 0:d60c26d5fddc | 23 | |
| youle1119 | 0:d60c26d5fddc | 24 | #endif //__CONFIG_H__ |