|
|
|
@ -18,9 +18,9 @@ void Plane::Log_Write_Attitude(void)
@@ -18,9 +18,9 @@ void Plane::Log_Write_Attitude(void)
|
|
|
|
|
// Get them from the quaternion instead:
|
|
|
|
|
quadplane.attitude_control->get_attitude_target_quat().to_euler(targets.x, targets.y, targets.z); |
|
|
|
|
targets *= degrees(100.0f); |
|
|
|
|
logger.Write_AttitudeView(*quadplane.ahrs_view, targets); |
|
|
|
|
quadplane.ahrs_view->Write_AttitudeView(targets); |
|
|
|
|
} else { |
|
|
|
|
logger.Write_Attitude(targets); |
|
|
|
|
ahrs.Write_Attitude(targets); |
|
|
|
|
} |
|
|
|
|
if (quadplane.in_vtol_mode() || quadplane.in_assisted_flight()) { |
|
|
|
|
// log quadplane PIDs separately from fixed wing PIDs
|
|
|
|
@ -37,12 +37,12 @@ void Plane::Log_Write_Attitude(void)
@@ -37,12 +37,12 @@ void Plane::Log_Write_Attitude(void)
|
|
|
|
|
|
|
|
|
|
#if AP_AHRS_NAVEKF_AVAILABLE |
|
|
|
|
AP::ahrs_navekf().Log_Write(); |
|
|
|
|
logger.Write_AHRS2(); |
|
|
|
|
ahrs.Write_AHRS2(); |
|
|
|
|
#endif |
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL |
|
|
|
|
sitl.Log_Write_SIMSTATE(); |
|
|
|
|
#endif |
|
|
|
|
logger.Write_POS(); |
|
|
|
|
ahrs.Write_POS(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// do fast logging for plane
|
|
|
|
@ -376,14 +376,6 @@ const struct LogStructure Plane::log_structure[] = {
@@ -376,14 +376,6 @@ const struct LogStructure Plane::log_structure[] = {
|
|
|
|
|
{ LOG_QTUN_MSG, sizeof(QuadPlane::log_QControl_Tuning), |
|
|
|
|
"QTUN", "QffffffeccffBB", "TimeUS,ThI,ABst,ThO,ThH,DAlt,Alt,BAlt,DCRt,CRt,TMix,Sscl,Trn,Ast", "s----mmmnn----", "F----00000-0--" }, |
|
|
|
|
|
|
|
|
|
// @LoggerMessage: AOA
|
|
|
|
|
// @Description: Angle of attack and Side Slip Angle values
|
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
|
// @Field: AOA: Angle of Attack calculated from airspeed, wind vector,velocity vector
|
|
|
|
|
// @Field: SSA: Side Slip Angle calculated from airspeed, wind vector,velocity vector
|
|
|
|
|
{ LOG_AOA_SSA_MSG, sizeof(log_AOA_SSA), |
|
|
|
|
"AOA", "Qff", "TimeUS,AOA,SSA", "sdd", "F00" }, |
|
|
|
|
|
|
|
|
|
// @LoggerMessage: PIQR,PIQP,PIQY,PIQA
|
|
|
|
|
// @Description: QuadPlane Proportional/Integral/Derivative gain values for Roll/Pitch/Yaw/Z
|
|
|
|
|
// @Field: TimeUS: Time since system startup
|
|
|
|
|