@ -20,7 +20,6 @@ struct PACKED log_Control_Tuning {
@@ -20,7 +20,6 @@ struct PACKED log_Control_Tuning {
float terr_alt ;
int16_t target_climb_rate ;
int16_t climb_rate ;
float dynamic_notch_freq ;
} ;
// Write a control tuning packet
@ -60,8 +59,7 @@ void Copter::Log_Write_Control_Tuning()
@@ -60,8 +59,7 @@ void Copter::Log_Write_Control_Tuning()
rangefinder_alt : surface_tracking . get_dist_for_logging ( ) ,
terr_alt : terr_alt ,
target_climb_rate : target_climb_rate_cms ,
climb_rate : int16_t ( inertial_nav . get_velocity_z ( ) ) , // float -> int16_t
dynamic_notch_freq : ins . get_gyro_dynamic_notch_center_freq_hz ( )
climb_rate : int16_t ( inertial_nav . get_velocity_z ( ) ) // float -> int16_t
} ;
logger . WriteBlock ( & pkt , sizeof ( pkt ) ) ;
}
@ -456,7 +454,7 @@ const struct LogStructure Copter::log_structure[] = {
@@ -456,7 +454,7 @@ const struct LogStructure Copter::log_structure[] = {
{ LOG_PARAMTUNE_MSG , sizeof ( log_ParameterTuning ) ,
" PTUN " , " QBfff " , " TimeUS,Param,TunVal,TunMin,TunMax " , " s---- " , " F---- " } ,
{ LOG_CONTROL_TUNING_MSG , sizeof ( log_Control_Tuning ) ,
" CTUN " , " Qffffffefffhhf " , " TimeUS,ThI,ABst,ThO,ThH,DAlt,Alt,BAlt,DSAlt,SAlt,TAlt,DCRt,CRt,N " , " s----mmmmmmnnz " , " F----00B000BB- " } ,
" CTUN " , " Qffffffefffhh " , " TimeUS,ThI,ABst,ThO,ThH,DAlt,Alt,BAlt,DSAlt,SAlt,TAlt,DCRt,CRt " , " s----mmmmmmnn " , " F----00B000BB " } ,
{ LOG_MOTBATT_MSG , sizeof ( log_MotBatt ) ,
" MOTB " , " Qffff " , " TimeUS,LiftMax,BatVolt,BatRes,ThLimit " , " s-vw- " , " F-00- " } ,
{ LOG_DATA_INT16_MSG , sizeof ( log_Data_Int16t ) ,