delete module's redundant print_status()

- we can already get the running status from ModuleBase and the other misc information is already available through perf or uORB
This commit is contained in:
Daniel Agar
2019-11-30 18:22:19 -05:00
committed by GitHub
parent db904839c3
commit 22a005c9f4
22 changed files with 0 additions and 132 deletions
@@ -90,8 +90,6 @@ public:
/* run the main loop */
void Run() override;
int print_status() override;
private:
static constexpr int MAX_NUM_AIRSPEED_SENSORS = 3; /**< Support max 3 airspeed sensors */
enum airspeed_index {
@@ -590,19 +588,6 @@ int AirspeedModule::custom_command(int argc, char *argv[])
return print_usage("unknown command");
}
int AirspeedModule::print_status()
{
perf_print_counter(_perf_elapsed);
int instance = 0;
uORB::SubscriptionData<airspeed_validated_s> est{ORB_ID(airspeed_validated), (uint8_t)instance};
est.update();
PX4_INFO("Number of airspeed sensors: %i", _number_of_airspeed_sensors);
print_message(est.get());
return 0;
}
int AirspeedModule::print_usage(const char *reason)
{
if (reason) {