AP_RPM: move RPM sensor logging into AP_RPM

This commit is contained in:
Peter Barker 2022-01-05 22:23:44 +11:00 committed by Andrew Tridgell
parent 15e99e306d
commit 99a3d253db
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#include "RPM_HarmonicNotch.h"
#include "RPM_ESC_Telem.h"
#include <AP_Logger/AP_Logger.h>
extern const AP_HAL::HAL& hal;
// table of user settable parameters
@ -186,6 +188,10 @@ void AP_RPM::update(void)
drivers[i]->update();
}
}
if (enabled(0) || enabled(1)) {
AP::logger().Write_RPM(*this);
}
}
/*