syouichi imamori
/
MulticopterQuadX
Quad X Type Multicopter
Diff: config.cpp
- Revision:
- 8:1db19b529b22
- Parent:
- 6:a50e6d3924f1
--- a/config.cpp Tue Apr 28 01:48:21 2015 +0000 +++ b/config.cpp Sun Feb 21 05:14:57 2021 +0000 @@ -27,7 +27,7 @@ CONFRESET, FINAL }; -void FlashLED(int); +void FlashLED(int,float tm=0.1); char Check_Stick_Dir(char); void Param_Set_Prompt1(char *,int *,int,int,int,int,char); void Param_Set_Prompt1(char *,float *,int,float,float,float,char); @@ -45,6 +45,7 @@ void LCD_printf(char *); void LCD_cls(); void LCD_locate(int,int); +void wait(float); Timer elaps; @@ -444,7 +445,7 @@ case PARMSET*10: //パラメーター設定 LCD_printf("Parameter Set"); Set_Arrow(1); - hmax = 9; + hmax = 8; break; case PARMSET*10+1: Param_Set_Prompt1("LCD>Contrast",&conf.LCD_Contrast,2,0,63,1,sw); @@ -480,33 +481,9 @@ Param_Set_Prompt1("Flight Timer",&conf.Flight_Time,2,0,600,10,sw); break; case PARMSET*10+8: - Param_Set_Prompt1("Thro Limit val",&conf.Thro_Limit_Val,2,0,200,1,sw); - throLimit.differential(conf.Thro_Limit_Val); - break; - case PARMSET*10+9: - Param_Set_Prompt1("Thro Limit Rate",&conf.Thro_Limit_Rate,3,0,1,0.01,sw); - throLimit.rate(conf.Thro_Limit_Rate); - break; -/* case PARMSET*10+7: - LCD_locate(0,0); - LCD_printf("Model Type"); - LCD_locate(0,1); - switch ( sw ) { - case 'D': - if ( conf.Model_Type > 0 ) conf.Model_Type -= 1; - else conf.Model_Type = 3; - break; - case 'U': - if ( conf.Model_Type < 4 ) conf.Model_Type += 1; - else conf.Model_Type = 0; - } - LCD_printf( (char*)ModelName[conf.Model_Type] ); - Set_Arrow(2); - break; - case PARMSET*10+8: Param_Set_Prompt1("Active Gyro Gain",&conf.Active_Gyro_Gain,3,0.0f,1.0f,0.01f,sw); break; -*/ + //設定データの保存 case CONFSTORE*10: //E2PROM Store LCD_printf("Config Save");