![](/media/cache/profiles/P1080070.JPG.50x50_q85.jpg)
Lab3
main.cpp@25:4277e16b97c3, 2019-08-21 (annotated)
- Committer:
- HeptaSatTraining2019
- Date:
- Wed Aug 21 18:14:40 2019 +0000
- Revision:
- 25:4277e16b97c3
- Parent:
- 24:3659e0c223c8
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:bdbd3d6fc5d5 | 1 | #include "mbed.h" |
HeptaSatTraining2019 | 25:4277e16b97c3 | 2 | #include "HEPTA_EPS.h" |
HeptaSatTraining2019 | 24:3659e0c223c8 | 3 | |
umeume | 2:1c5cdb2c3e0f | 4 | Serial pc(USBTX,USBRX); |
HeptaSatTraining2019 | 25:4277e16b97c3 | 5 | HEPTA_EPS eps(p16,p26); |
HeptaSatTraining2019 | 24:3659e0c223c8 | 6 | |
umeume | 2:1c5cdb2c3e0f | 7 | int main() |
umeume | 2:1c5cdb2c3e0f | 8 | { |
HeptaSatTraining2019 | 24:3659e0c223c8 | 9 | pc.baud(9600); |
HeptaSatTraining2019 | 25:4277e16b97c3 | 10 | float bt; |
HeptaSatTraining2019 | 25:4277e16b97c3 | 11 | for(int i = 0; i < 10; i++) { |
HeptaSatTraining2019 | 25:4277e16b97c3 | 12 | eps.vol(&bt); |
HeptaSatTraining2019 | 25:4277e16b97c3 | 13 | pc.printf("Vol = %f\r\n",bt); |
HeptaSatTraining2019 | 25:4277e16b97c3 | 14 | wait(1.0); |
HeptaSatTraining2019 | 24:3659e0c223c8 | 15 | } |
umeume | 2:1c5cdb2c3e0f | 16 | } |