@@ -276,8 +276,8 @@ void Cli::Param::write(ActuatorCondition& ac, const char ** args) const
276276 if (args[3 ]) ac.ch = String (args[3 ]).toInt ();
277277 if (args[4 ]) ac.min = String (args[4 ]).toInt ();
278278 if (args[5 ]) ac.max = String (args[5 ]).toInt ();
279- if (args[6 ]) ac.max = String (args[6 ]).toInt ();
280- if (args[7 ]) ac.max = String (args[7 ]).toInt ();
279+ if (args[6 ]) ac.logicMode = String (args[6 ]).toInt ();
280+ if (args[7 ]) ac.linkId = String (args[7 ]).toInt ();
281281}
282282
283283void Cli::Param::write (MixerEntry& ac, const char ** args) const
@@ -560,12 +560,20 @@ const Cli::Param * Cli::initialize(ModelConfig& c)
560560 Param (PSTR (" pid_level_p" ), &c.pid [FC_PID_LEVEL].P ),
561561 Param (PSTR (" pid_level_i" ), &c.pid [FC_PID_LEVEL].I ),
562562 Param (PSTR (" pid_level_d" ), &c.pid [FC_PID_LEVEL].D ),
563+ Param (PSTR (" pid_level_f" ), &c.pid [FC_PID_LEVEL].F ),
563564
564565 Param (PSTR (" pid_level_angle_limit" ), &c.level .angleLimit ),
565566 Param (PSTR (" pid_level_rate_limit" ), &c.level .rateLimit ),
566567 Param (PSTR (" pid_level_lpf_type" ), &c.level .ptermFilter .type , filterTypeChoices),
567568 Param (PSTR (" pid_level_lpf_freq" ), &c.level .ptermFilter .freq ),
568569
570+ Param (PSTR (" pid_althold_vel_p" ), &c.pid [FC_PID_VEL].P ),
571+ Param (PSTR (" pid_althold_vel_i" ), &c.pid [FC_PID_VEL].I ),
572+ Param (PSTR (" pid_althold_vel_d" ), &c.pid [FC_PID_VEL].D ),
573+ Param (PSTR (" pid_althold_vel_f" ), &c.pid [FC_PID_VEL].F ),
574+ Param (PSTR (" pid_althold_iterm_center" ), &c.altHold .itermCenter ),
575+ Param (PSTR (" pid_althold_iterm_range" ), &c.altHold .itermRange ),
576+
569577 Param (PSTR (" pid_yaw_lpf_type" ), &c.yaw .filter .type , filterTypeChoices),
570578 Param (PSTR (" pid_yaw_lpf_freq" ), &c.yaw .filter .freq ),
571579
@@ -1382,13 +1390,15 @@ void Cli::execute(CliCmd& cmd, Stream& s)
13821390 else if (strcmp_P (cmd.args [1 ], PSTR (" erase" )) == 0 )
13831391 {
13841392 flashfsEraseCompletely ();
1393+ s.println (" OK" );
13851394 }
13861395 else if (strcmp_P (cmd.args [1 ], PSTR (" test" )) == 0 )
13871396 {
13881397 const char * data = " flashfs-test" ;
13891398 flashfsWrite ((const uint8_t *)data, strlen (data), true );
13901399 flashfsFlushAsync (true );
13911400 flashfsClose ();
1401+ s.println (" OK" );
13921402 }
13931403 else if (strcmp_P (cmd.args [1 ], PSTR (" print" )) == 0 )
13941404 {
0 commit comments