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: 2_MPU9250 mbed 2_GPS_GMS6-CR6 2_LPS33HW 2_EEPROM 2_P7100
Diff: main.cpp
- Revision:
- 1:80140aac4bec
- Parent:
- 0:9fb816db0c8b
--- a/main.cpp Mon Jul 27 12:39:33 2020 +0000 +++ b/main.cpp Mon Aug 03 07:27:35 2020 +0000 @@ -44,6 +44,7 @@ float lon_east; //GPS経度 float GPS[2]; //GPSデータ格納配列 + //main int main() { @@ -90,16 +91,17 @@ pc.printf("Check mode Start!\r\n"); twe.printf("Check mode Start!\r\n"); //valve check + DepressValve = 1;wait(1);DepressValve = 0; + wait(3); + DepressValve = 1;wait(1);DepressValve = 0; + wait(3); ThrustValve = 1;wait(1);ThrustValve = 0; wait(1); ThrustValve = 1;wait(1);ThrustValve = 0; wait(2); - DepressValve = 1;wait(1);DepressValve = 0; - wait(1); - DepressValve = 1;wait(1);DepressValve = 0; - wait(1); + - for(int c = 0; c < 60 ; c++) { + for(int c = 0; c < 30 ; c++) { LED_1 = 1; LED_2 = 1; LED_3 = 1; @@ -123,7 +125,8 @@ } groundP = groundP/1000; //地上の気圧データ heightP = 0.998862 * groundP; //高度10mの気圧を計算 - + pc.printf("groundP:%f, heightP:%f\r\n", groundP, heightP); + twe.printf("groundP:%f, heightP:%f\r\n", groundP, heightP); //Wait mode