Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Airspeed: keep references to state and params in backend #29107

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

peterbarker
Copy link
Contributor

... much as we do for GPS, rangefinder and several other libraries

@peterbarker
Copy link
Contributor Author

There are probably a few more hundred bytes to be saved in the calibration stuff yet.

----------------------------  ---------  -----  ----------  ------  ----  ----------  -----  -----  ----
Board                         AP_Periph  blimp  bootloader  copter  heli  iofirmware  plane  rover  sub
3DRControlZeroG                          16     *           -288    -336              -296   -368   -344
ACNS-CM4Pilot                            16     *           -8      -32               -256   -144   -232
ACNS-F405AIO                             8      *           168     296               -88    -128   -208
AEROFOX-H7                               -8     *           -368    -384              -440   -392   -352
AET-H743-Basic                           -32    *           -232    -224              -160   -176   -256
AIRLink                                  -32    *           -336    -328              -336   -408   -432
AR-F407SmartBat               *                 *
ARKV6X                                   0      *           -344    -336              -344   -376   -384
ARK_CANNODE                   *                 *
ARK_GPS                       *                 *
ARK_RTK_GPS                   *                 *
AeroFox-Airspeed              -56               *
AeroFox-Airspeed-DLVR         -64               *
AeroFox-GNSS_F9P              *                 *
AeroFox-PMU                   *                 *
Airvolute-DCS2                           -24    *           -224    -216              -224   -152   -136
AnyleafH7                                -32    *           -216    -208              -184   -176   -184
Aocoda-RC-H743Dual                       -24    *           -240    -232              -88    -272   -392
AtomRCF405NAVI                           16     *           0       -8                -208   -184   -192
BETAFPV-F405                                    *           -136
BeastF7                                  -16    *           -136    8                 -168   -192   -208
BeastF7v2                                -16    *           -136    16                -168   -184   -208
BeastH7                                  -8     *           -328    -328              -344   -384   -392
BeastH7v2                                -8     *           -328    -328              -344   -384   -392
BirdCANdy                     *                 *
BlitzF745                                -16    *           -136    8                 -168   -184   -208
BlitzF745AIO                             24     *           40      48                -160   -176   -200
BlitzH743Pro                             0      *           -192    -192              -192   -160   -80
BlitzMiniF745                            -16    *           -136    16                -168   -192   -208
BlitzWingH743                            0      *           -192    -192              -192   -168   -72
BotBloxDroneNet               *                 *
C-RTK2-HP                     *                 *
CBU-H7-LC-Stamp                          16     *           -192    -192              -280   -168   -160
CBU-H7-Stamp                             0      *           -200    -216              -160   -176   -184
CSKY405                                  40     *           -24     16                -168   -136   -200
CUAV-7-Nano                              16     *           -360    -360              -152   -352   -288
CUAV-Nora                                -8     *           -352    -376              -368   -376   -368
CUAV-Nora-bdshot                         0      *           -368    -384              -440   -400   -360
CUAV-Pixhack-v3                          8                  -200    -192              256    -184   -312
CUAV-X7                                  -8     *           -344    -376              -360   -376   -368
CUAV-X7-bdshot                           0      *           -368    -376              -432   -400   -360
CUAV_GPS                      *                 *
CUAVv5                                   -48    *           -368    -344              -296   -400   -368
CUAVv5-bdshot                            -48    *           -336    -360              -312   -392   -408
CUAVv5Nano                               -40    *           -336    -336              152    -360   -368
CUAVv5Nano-bdshot                        -48    *           -344    -352              -344   -360   -424
CarbonixF405                  *                 *
CarbonixL496                  *                 *
CrazyF405                                       *           -120
CubeBlack                                8      *           -368    -336              136    -368   -480
CubeBlack+                               0      *           -360    -328              144    -368   -480
CubeBlack-periph              *                 *
CubeGreen-solo                                  *           -368
CubeNode                      16                *
CubeNode-ETH                  *                 *
CubeOrange                               -8     *           -344    -376              -360   -376   -368
CubeOrange-ODID                          -56    *           -344    -336              -456   -400   -376
CubeOrange-SimOnHardWare                                    -320
CubeOrange-bdshot                        -8     *           -368    -384              -440   -400   -352
CubeOrange-joey                          -8     *           -352    -376              -368   -376   -368
CubeOrange-periph             *                 *
CubeOrange-periph-heavy       16                *
CubeOrangePlus                           -16    *           -328    -328              -328   -360   -352
CubeOrangePlus-SimOnHardWare                                -368
CubeOrangePlus-bdshot                    -16    *           -328    -336              -360   -360   -400
CubePurple                               -40    *           -208    -216              -240   -184   -232
CubeRedPrimary                           0      *           -216    -216              -160   -184   -240
CubeRedPrimary-PPPGW          *                 *
CubeRedSecondary                         16     *           -192    -192              -200   -152   -296
CubeSolo                                        *           -360
CubeYellow                               -32    *           -336    -328              -336   -408   -432
CubeYellow-bdshot                        -32    *           -336    -336              -344   -392   -352
DevEBoxH7v2                              24     *           -32     -24               -56    -168   -216
DrotekP3Pro                              8      *           -344    -344              -96    -368   -360
Durandal                                 -8     *           -344    -376              -368   -376   -368
Durandal-bdshot                          0      *           -368    -384              -432   -400   -360
F35Lightning                             -8     *           -120    0                 -144   -176   -208
F4BY                                     -8     *           8       8                 -208   -160   -120
F4BY_F427                                32     *           -328    -320              -488   -392   -400
FlyingMoonF407                           -8     *           8       8                 -208   -160   -120
FlyingMoonF427                           16     *           -328    -336              -264   -360   -376
FlyingMoonH743                           8      *           -296    -304              -304   -360   -376
FlywooF405HD-AIOv2                              *           40
FlywooF405Pro                            -16    *           -136    8                 -168   -192   -208
FlywooF405S-AIO                                 *           40
FlywooF745                               0      *           8       16                -64    -160   -184
FlywooF745Nano                           0      *           8       16                -64    -160   -184
FlywooH743Pro                            -24    *           -240    -256              -384   -208   -288
FoxeerF405v2                             -8     *           -120    0                 -144   -176   -216
FoxeerH743v1                             -8     *           -240    -248              -192   -224   -240
FreeflyRTK                    *                 *
G4-ESC                        *                 *
GEPRCF745BTHD                            40     *           168     24                -224   -144   -216
GEPRC_TAKER_H743                         -24    *           -240    -256              -384   -208   -288
H757I_EVAL                                      *
H757I_EVAL_intf                                 *
HEEWING-F405                                    *                                     -168
HEEWING-F405v2                                  *                                     -168
Here4AP                       *                 *
Hitec-Airspeed                -40               *
HitecMosaic                   *                 *
HolybroF4_PMU                 *                 *
HolybroG4_Airspeed            -24               *
HolybroG4_Compass             *                 *
HolybroG4_GPS                 *                 *
HolybroGPS                    *                 *
IFLIGHT_2RAW_H7                          -8     *           -240    -240              -248   -224   -288
JFB100                                   -16    *           -344    -328              -368   -344   -352
JFB110                                   8      *           -296    -304              -304   -352   -368
JHEMCU-GSF405A                                  *           -136
JHEMCU-GSF405A-RX2                              *           -144
JHEMCU-H743HD                            -24    *           -256    -240              -640   -232   -304
JHEM_JHEF405                             8      *           88      128               -136   -136   -184
KakuteF4                                 -16    *           -120    0                 -144   -176   -216
KakuteF4-Wing                            -16    *           -136    16                -168   -192   -208
KakuteF4Mini                             -16    *           -144    8                 -288   -192   -208
KakuteF7                                 16     *           0       -8                -216   -192   -192
KakuteF7-bdshot                          16     *           72      0                 -80    -168   -208
KakuteF7Mini                             -16    *           -144    8                 -288   -192   -208
KakuteH7                                 -16    *           -216    -216              -400   -200   -256
KakuteH7-Wing                            -40    *           -224    -240              -168   -176   -256
KakuteH7-bdshot                          48     *           -376    -416              -264   -208   -272
KakuteH7Mini                             -8     *           -240    -248              -192   -224   -240
KakuteH7Mini-Nand                        8      *           -232    -240              -256   -208   -256
KakuteH7v2                               8      *           -232    -240              -256   -208   -264
LongBowF405WING                          16     *           8       0                 -184   -184   -192
MFE_AirSpeed_CAN              -64               *
MFE_POS3_CAN                  *                 *
MFT-SEMA100                              -32    *           -192    -176              -232   -160   -200
MUPilot                                  -32    *           -328    -336              -336   -408   -432
MambaF405-2022                           -8     *           32      -192              -120   -144   -152
MambaF405US-I2C                          -8     *           -120    0                 -144   -176   -208
MambaF405v2                              -8     *           32      -192              -120   -152   -152
MambaH743v4                              40     *           -336    -328              -408   -360   -376
MatekF405                                16     *           0       -8                -216   -184   -192
MatekF405-CAN                            16     *           0       -24               -216   -144   -224
MatekF405-STD                            16     *           8       -8                -208   -192   -192
MatekF405-TE                             40     *           -8      8                 -152   -136   -208
MatekF405-TE-bdshot                      40     *           8       40                -176   -144   -192
MatekF405-Wing                           32     *           56      16                -328   -184   -248
MatekF405-Wing-bdshot                    32     *           144     24                -256   -176   -240
MatekF405-bdshot                         16     *           72      0                 -80    -168   -208
MatekF765-SE                             0      *           -192    -184              -200   -160   -216
MatekF765-Wing                           -16    *           -280    -272              -168   -240   -200
MatekF765-Wing-bdshot                    -40    *           -272    -272              -272   -240   -72
MatekG474-DShot               *                 *
MatekG474-GPS                 *                 *
MatekG474-Periph              -32               *
MatekH743                                0      *           -200    -184              -216   -144   -216
MatekH743-bdshot                         -8     *           -192    -184              -336   -152   -192
MatekH743-periph              -8                *
MatekH7A3                                0      *           -192    -192              -192   -168   -72
MatekL431-ADSB                *                 *
MatekL431-APDTelem            *                 *
MatekL431-Airspeed            -24               *
MatekL431-BattMon             *                 *
MatekL431-DShot               *                 *
MatekL431-EFI                 *                 *
MatekL431-GPS                 *                 *
MatekL431-HWTelem             *                 *
MatekL431-MagHiRes            *                 *
MatekL431-Periph              -8                *
MatekL431-Proximity           *                 *
MatekL431-RC                  *                 *
MatekL431-Rangefinder         *                 *
MatekL431-Serial              *                 *
MatekL431-bdshot              *                 *
MazzyStarDrone                           0      *           8       0                 -296   -192   -280
MicoAir405Mini                           16     *           8       0                 -104   -192   -208
MicoAir405v2                             16     *           8       0                 -104   -192   -208
MicoAir743                               -40    *           -224    -240              -168   -176   -256
MicoAir743-AIO                           -24    *           -240    -264              -384   -208   -288
MicoAir743v2                             -24    *           -240    -256              -384   -208   -288
Nucleo-G491                   *                 *
Nucleo-L476                   -104              *
Nucleo-L496                   -112              *
NucleoH743                                      *
NucleoH755                                      *
NxtPX4v2                                 -24    *           -240    -256              -384   -208   -288
OMNIBUSF7V2                              32     *           120     32                -112   -144   -216
OmnibusNanoV6                            -8     *           -120    0                 -144   -176   -216
OmnibusNanoV6-bdshot                     -16    *           -136    8                 -168   -184   -208
OrqaF405Pro                              0      *           40      -200              -120   -152   -152
PH4-mini                                 -40    *           -336    -336              144    -360   -368
PH4-mini-bdshot                          -48    *           -344    -352              -344   -360   -424
Pix32v5                                  -32    *           -328    -336              -336   -408   -432
PixC4-Jetson                             16     *           -296    -312              -304   -352   -368
PixFlamingo                              32     *           -384    -408              -248   -368   -296
PixFlamingo-F767                         -40    *           -408    -376              -432   -440   -432
PixPilot-C3                              -32    *           -368    -344              -280   -344   -360
PixPilot-V3                              8      *           -360    -328              136    -368   -480
PixPilot-V6                              -8     *           -344    -376              -368   -376   -368
PixPilot-V6PRO                           0      *           -368    -384              -432   -400   -360
PixSurveyA1                              8      *           -200    -192              256    -184   -312
PixSurveyA1-IND                          0      *           -368    -336              144    -368   -488
PixSurveyA2                              -8     *           -344    -376              -368   -376   -368
Pixhawk1                                 -40    *           -208    -216              -240   -192   -232
Pixhawk1-1M                              48     *           24      -80               -248   -120   -120
Pixhawk1-1M-bdshot                       48                 40      -88               -144   -120   -112
Pixhawk1-bdshot                          -40                -208    -208              -304   -184   -232
Pixhawk4                                 -48    *           -368    -344              -296   -400   -360
Pixhawk4-bdshot                          -48    *           -336    -360              -312   -392   -408
Pixhawk5X                                -32    *           -336    -328              -336   -408   -432
Pixhawk6C                                0      *           -368    -376              -440   -400   -360
Pixhawk6C-bdshot                         -8     *           -368    -376              -432   -392   -352
Pixhawk6X                                -8     *           -328    -336              -192   -352   -328
Pixhawk6X-ODID                           0      *           -360    -344              -264   -400   -384
Pixhawk6X-PPPGW               *                 *
Pixhawk6X-bdshot                         -8     *           -336    -336              -192   -352   -328
Pixracer                                 -64    *           -352    -344              -256   -336   -240
Pixracer-bdshot                          -72    *           -360    -352              -128   -352   -264
Pixracer-periph               0                 *
QioTekAdeptF407                          -32    *           24      -24               -152   -152   -192
QioTekZealotF427                         24     *           -328    -344              -360   -352   -312
QioTekZealotH743                         -8     *           -352    -376              -368   -376   -368
QioTekZealotH743-bdshot                  0      *           -368    -384              -440   -400   -360
R9Pilot                                  0      *           -264    -272              -224   -264   -184
RADIX2HD                                 16                 16      8                 -160   -168   -240
RadiolinkPIX6                            8      *           -200    -200              -56    -160   -208
ReaperF745                               0      *           8       8                 -176   -160   -192
SDMODELH7V1                              8      *           -232    -240              -256   -208   -264
SDMODELH7V2                              48     *           -376    -416              -264   -200   -280
SITL_arm_linux_gnueabihf                 -48                560     424               392    456    480
SITL_x86_64_linux_gnu                    0                  480     480               480    480    480
SIYI_N7                                  8      *           -304    -328              -296   -368   -416
SPRacingH7                               8      *           16      -8                -32    -208   -216
SPRacingH7RF                             -8     *           16      -24               -32    -232   -232
Sierra-F405                   *                 *
Sierra-F412                   *                 *
Sierra-F9P                    *                 *
Sierra-L431                   -24               *
Sierra-PrecisionPoint         *                 *
Sierra-TrueNavIC              *                 *
Sierra-TrueNavPro             *                 *
Sierra-TrueNavPro-G4          *                 *
Sierra-TrueNorth              *                 *
Sierra-TrueSpeed              -40               *
SkySakuraH743                            -40    *           -224    -240              -168   -176   -256
SkystarsH7HD                             24     *           -336    -336              -296   -416   -352
SkystarsH7HD-bdshot                      24     *           -336    -344              -264   -376   -352
SpeedyBeeF405Mini                        -16    *           -136    16                -168   -192   -208
SpeedyBeeF405WING                        16     *           56      -8                -32    -176   -216
SuccexF4                                 -8     *           -72     -56               -232   -144   -160
Swan-K1                                         *                                     144
TBS-Colibri-F7                           -56    *           -336    -328              -336   -376   -344
TBS_LUCID_H7                             -40    *           -224    -232              -168   -176   -256
TBS_LUCID_PRO                            0      *           40      -200              -120   -144   -152
TMotorH743                               0      *           -240    -256              -192   -224   -240
VRBrain-v51                              -8     *           -8      -32               -320   -160   -288
VRBrain-v52                              0      *           0       -24               -320   -160   -280
VRBrain-v54                              -8     *           -280    -304              -232   -280   -272
VRCore-v10                               -8     *           -8      -32               -320   -160   -288
VRUBrain-v51                             0      *           80      -40               -256   -184   -288
VUAV-V7pro                               -8     *           -368    -384              -440   -392   -352
X-MAV-AP-H743v2                          -40    *           -224    -232              -168   -176   -256
YJUAV_A6                                 -16    *           -344    -352              -368   -376   -368
YJUAV_A6SE                               -40    *           -24     -24               16     -208   -184
YJUAV_A6SE_H743                          0      *           -368    -384              -440   -400   -360
YJUAV_A6Ultra                            -8     *           -368    -376              -432   -392   -352
ZeroOneX6                                -8     *           -344    -352              -504   -352   -328
ZubaxGNSS                     *                 *
airbotf4                                 8      *           32      -8                -168   -160   -288
bbbmini                                  0                  504     440               520    536    456
bebop                                    0                  460     432               460    412    444
blue                                     0                  472     472               520    488    488
canzero                                  32                 440     472               424    488    488
crazyflie2                                      *           -8
edge                                     0                  424     472               488    488    520
erlebrain2                               0                  432     396               384    448    448
f103-ADSB                     -64               *
f103-Airspeed                 -64               *
f103-GPS                      *                 *
f103-HWESC                    *                 *
f103-QiotekPeriph             -56               *
f103-RangeFinder              *                 *
f103-Trigger                  *                 *
f303-GPS                      *                 *
f303-HWESC                    *                 *
f303-M10025                   -112              *
f303-M10070                   -104              *
f303-MatekGPS                 -8                *
f303-PWM                      *                 *
f303-TempSensor               *                 *
f303-Universal                -16               *
f405-MatekAirspeed            -16               *
f405-MatekGPS                 -16               *
fmuv2                                    56                 48      48                -64    -112   -104
fmuv3                                    8      *           -200    -192              256    -184   -312
fmuv3-bdshot                             8                  -216    -200              -200   -176   -344
fmuv5                                    -48    *           -368    -344              -296   -400   -368
iomcu                                                                     *
iomcu-dshot                                                               *
iomcu-f103                                                                *
iomcu-f103-8MHz-dshot                                                     *
iomcu-f103-dshot                                                          *
iomcu_f103_8MHz                                                           *
luminousbee4                             -16                -360    -384              -336   -440   -408
luminousbee5                             0      *           -360    -352              -544   -336   -352
mRo-M10095                    *                 *
mRoCANPWM-M10126              *                 *
mRoCZeroOEMH7-bdshot                     16     *           -288    -336              -288   -368   -344
mRoControlZeroClassic                    8      *           -296    -304              -304   -360   -376
mRoControlZeroF7                         8      *           -320    -336              -352   -376   -360
mRoControlZeroH7                         -32    *           -344    -328              -384   -368   -360
mRoControlZeroH7-bdshot                  -32    *           -320    -312              -504   -368   -344
mRoControlZeroOEMH7                      24     *           -264    -296              -280   -408   -344
mRoKitCANrevC                 -112              *
mRoNexus                                 0      *           -320    -320              -248   -360   -352
mRoPixracerPro                           16     *           -272    -296              -272   -408   -344
mRoPixracerPro-bdshot                    16     *           -288    -336              -296   -376   -344
mRoX21                                   0      *           -360    -328              144    -368   -480
mRoX21-777                               -16    *           -352    -352              -376   -336   -360
mindpx-v2                                48     *           -216    -224              -128   -176   -192
mini-pix                                 -16    *           -8      -32               -264   -224   -208
modalai_fc-v1                            -56    *           -312    -320              -264   -344   -272
navigator                                0                  464     448               508    480    448
navio                                    0                  432     448               432    480    480
navio2                                   0                  496     428               480    480    320
obal                                     0                  364     368               428    -3652  444
omnibusf4                                8      *           32      136               -112   -168   -168
omnibusf4pro                             0      *           32      136               -112   -168   -168
omnibusf4pro-bdshot                      8      *           16      224               -184   -184   -160
omnibusf4pro-one                         24     *           184     32                -256   -64    -216
omnibusf4v6                              -8     *           -120    0                 -144   -176   -216
pxf                                      0                  352     336               460    476    444
pxfmini                                  0                  432     396               384    448    448
rFCU                                            *
rGNSS                         *                 *
revo-mini                                32     *           184     32                -184   -152   -200
revo-mini-bdshot                         24     *           104     16                -192   -160   -256
revo-mini-i2c                            -8     *           -120    0                 -144   -176   -216
revo-mini-i2c-bdshot                     -16    *           -136    16                -168   -184   -208
revo-mini-sd                                    *
skyviper-f412-rev1                                          8
skyviper-journey                                            *
skyviper-v2450                                              *
sparky2                                  -8     *           -32     40                -96    -80    -192
speedybeef4                              -16    *           -120    0                 -144   -176   -208
speedybeef4v3                            16     *           8       0                 -184   -184   -192
speedybeef4v4                            16     *           56      -8                -16    -168   -208
sw-boom-f407                  *                 *
sw-nav-f405                   *                 *
sw-spar-f407                  *                 *
thepeach-k1                              8      *           -192    -192              -248   -176   -224
thepeach-r1                              8      *           -192    -192              -248   -176   -224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant