DataFlash: fix logging of ekf core

This commit is contained in:
Randy Mackay 2016-10-13 15:22:59 +09:00
parent 26c3295042
commit 9722c3a1c3

View File

@ -1394,7 +1394,7 @@ void DataFlash_Class::Log_Write_EKF2(AP_AHRS_NavEKF &ahrs, bool optFlowEnabled)
ahrs.get_NavEKF2().getFilterGpsStatus(0,gpsStatus);
float tiltError;
ahrs.get_NavEKF2().getTiltError(0,tiltError);
uint8_t primaryIndex = ahrs.get_NavEKF2().getPrimaryCoreIndex();
int8_t primaryIndex = ahrs.get_NavEKF2().getPrimaryCoreIndex();
struct log_NKF4 pkt4 = {
LOG_PACKET_HEADER_INIT(LOG_NKF4_MSG),
time_us : time_us,