mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 12:23:34 +08:00
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:
@@ -475,13 +475,6 @@ int BATT_SMBUS::manufacturer_name(uint8_t *man_name, const uint8_t length)
|
||||
return result;
|
||||
}
|
||||
|
||||
int BATT_SMBUS::print_status()
|
||||
{
|
||||
PX4_INFO("Running");
|
||||
print_message(_last_report);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int BATT_SMBUS::manufacturer_read(const uint16_t cmd_code, void *data, const unsigned length)
|
||||
{
|
||||
uint8_t code = BATT_SMBUS_MANUFACTURER_BLOCK_ACCESS;
|
||||
|
||||
@@ -141,9 +141,6 @@ public:
|
||||
/** @see ModuleBase */
|
||||
static int task_spawn(int argc, char *argv[]);
|
||||
|
||||
/** @see ModuleBase::print_status() */
|
||||
int print_status() override;
|
||||
|
||||
/**
|
||||
* @brief Reads data from flash.
|
||||
* @param address The address to start the read from.
|
||||
|
||||
@@ -464,12 +464,6 @@ void PGA460::print_diagnostics(const uint8_t diagnostic_byte)
|
||||
}
|
||||
}
|
||||
|
||||
int PGA460::print_status()
|
||||
{
|
||||
PX4_INFO("Distance: %2.2f", (double)_previous_valid_report_distance);
|
||||
return PX4_OK;
|
||||
}
|
||||
|
||||
int PGA460::print_usage(const char *reason)
|
||||
{
|
||||
if (reason) {
|
||||
|
||||
@@ -267,11 +267,6 @@ public:
|
||||
*/
|
||||
void print_diagnostics(const uint8_t diagnostic_byte);
|
||||
|
||||
/**
|
||||
* Diagnostics - print some basic information about the driver.
|
||||
*/
|
||||
int print_status() override;
|
||||
|
||||
/**
|
||||
* @brief Reads the threshold registers.
|
||||
* @return Returns true if the threshold registers are set to default
|
||||
|
||||
@@ -199,14 +199,6 @@ SafetyButton::custom_command(int argc, char *argv[])
|
||||
return print_usage("unknown command");
|
||||
}
|
||||
|
||||
int
|
||||
SafetyButton::print_status()
|
||||
{
|
||||
PX4_INFO("Safety State (from button): %s", _safety_btn_off ? "off" : "on");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
SafetyButton::print_usage(const char *reason)
|
||||
{
|
||||
|
||||
@@ -62,9 +62,6 @@ public:
|
||||
/** @see ModuleBase */
|
||||
static int print_usage(const char *reason = nullptr);
|
||||
|
||||
/** @see ModuleBase::print_status() */
|
||||
int print_status() override;
|
||||
|
||||
void Run() override;
|
||||
|
||||
int Start();
|
||||
|
||||
Reference in New Issue
Block a user