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: HCSR04_2 MPU6050_2 mbed SDFileSystem3
Fork of Autoflight2018_51 by
Diff: main.cpp
- Revision:
- 30:624cb32e13a3
- Parent:
- 29:887a38540508
- Child:
- 31:dba3216c2755
--- a/main.cpp Sat Sep 22 04:31:11 2018 +0000
+++ b/main.cpp Sat Sep 22 06:59:37 2018 +0000
@@ -151,10 +151,10 @@
OperationMode operation_mode = StartUp;
BombingMode bombing_mode = Takeoff;
-static int16_t autopwm[8] = {1500,1500,1180,1500,1512,1500};
+static int16_t autopwm[8] = {1500,1500,1180,1500,1454,1500};
//1号機
-static int16_t trimpwm[6] = {1580,1600,1176,1404,1632,1448};
+static int16_t trimpwm[6] = {1580,1600,1176,1404,1440,1448};
int16_t maxpwm[6] = {1796,1936,1848,1740,1820,1856};
int16_t minpwm[6] = {1182,1265,1176,1068,1180,1176};
const int16_t reverce[4] = {Reverce_falfalla[0],Reverce_falfalla[1],Reverce_falfalla[2],Reverce_falfalla[3]};
@@ -395,7 +395,7 @@
//pc.printf("%c",g_landingcommand);
//NVIC_EnableIRQ(USART2_IRQn);
#if DEBUG_PRINT_INLOOP
- Sbusprintf();
+ //Sbusprintf();
//DebugPrint();
#endif
}
@@ -1297,9 +1297,9 @@
//チキラー投下
void Chicken_Drop(){
if(CheckSW_Up(Ch7)){
- autopwm[DROP] = 1632;
+ autopwm[DROP] = 1911;
pc.printf("Bombed!\r\n");
- RerurnChickenServo1.attach(&ReturnChickenServo1, 3);
+ //RerurnChickenServo1.attach(&ReturnChickenServo1, 3);
//operation_mode = Approach;
//buzzer = 0;
pc.printf("Goto LeftLoop mode\r\n");
