mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Temp cal: Use correct constants
This commit is contained in:
parent
ae737d8df0
commit
f4eaea99c5
@ -140,7 +140,7 @@ public:
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < _forder; i++) {
|
||||
res[i] = 0.0f;
|
||||
res[i] = 0.0;
|
||||
|
||||
for (int j = 0; j < _forder; j++) {
|
||||
res[i] += IVTV(i, j) * (double)_VTY(j);
|
||||
@ -158,7 +158,7 @@ private:
|
||||
|
||||
void update_VTY(double x, double y)
|
||||
{
|
||||
double temp = 1.0f;
|
||||
double temp = 1.0;
|
||||
PF_DEBUG("O %.6f\n", (double)x);
|
||||
|
||||
for (int8_t i = _forder - 1; i >= 0; i--) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user