mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
mixer: set/get_trim needs to return the amount of channels consumed by the mixer even if the mixer doesn't support trims (or is empty)
This commit is contained in:
committed by
Lorenz Meier
parent
f298d4bb4f
commit
4db149f6e7
@@ -461,12 +461,12 @@ public:
|
||||
virtual void set_offset(float trim) {}
|
||||
unsigned set_trim(float trim)
|
||||
{
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
unsigned get_trim(float *trim)
|
||||
{
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
};
|
||||
@@ -783,7 +783,7 @@ public:
|
||||
|
||||
unsigned get_trim(float *trim)
|
||||
{
|
||||
return 0;
|
||||
return 4;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user