mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 11:43:34 +08:00
Stop setting zero to zero
This commit is contained in:
committed by
Mathieu Bresciani
parent
552bf824ea
commit
356b2f6ffe
@@ -169,8 +169,6 @@ void Ekf::fuseGpsAntYaw()
|
||||
float Kfusion[_k_num_states] = {};
|
||||
|
||||
for (uint8_t row = 0; row <= 15; row++) {
|
||||
Kfusion[row] = 0.0f;
|
||||
|
||||
for (uint8_t col = 0; col <= 3; col++) {
|
||||
Kfusion[row] += P(row,col) * H_YAW[col];
|
||||
}
|
||||
@@ -180,8 +178,6 @@ void Ekf::fuseGpsAntYaw()
|
||||
|
||||
if (_control_status.flags.wind) {
|
||||
for (uint8_t row = 22; row <= 23; row++) {
|
||||
Kfusion[row] = 0.0f;
|
||||
|
||||
for (uint8_t col = 0; col <= 3; col++) {
|
||||
Kfusion[row] += P(row,col) * H_YAW[col];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user