AP_Periph: choose node stats - build files

Added - AP_Stat library and AP_STATS_ENABLED build options
This commit is contained in:
Pradeep 2022-06-01 14:45:24 +10:00 committed by Andrew Tridgell
parent 03f7df39dd
commit 183352cdfe
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,7 @@ def build(bld):
'AC_PID',
'AP_BLHeli',
'AP_ESC_Telem',
'AP_Stats'
]
bld.ap_stlib(
name= 'AP_Periph_libs',

View File

@ -2782,6 +2782,10 @@ def add_apperiph_defaults(f):
#define AP_ROBOTISSERVO_ENABLED 0
#endif
#ifndef AP_STATS_ENABLED
#define AP_STATS_ENABLED 0
#endif
/*
* GPS Backends - we selectively turn backends on.
* Note also that f103-GPS explicitly disables some of these backends.