mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-24 19:08:21 +08:00
fix(gimbal): mark OutputRC methods override
Adding publishes_mount_orientation() with 'override' made OutputRC mix marked and unmarked overrides, which clang rejects under -Winconsistent-missing-override (macOS build and clang-tidy). gcc doesn't flag it, so the NuttX builds passed. Mark update()/print_status() override. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -50,8 +50,8 @@ public:
|
||||
explicit OutputRC(const Parameters ¶meters);
|
||||
virtual ~OutputRC() = default;
|
||||
|
||||
virtual void update(const ControlData &control_data, bool new_setpoints, uint8_t &gimbal_device_id);
|
||||
virtual void print_status() const;
|
||||
void update(const ControlData &control_data, bool new_setpoints, uint8_t &gimbal_device_id) override;
|
||||
void print_status() const override;
|
||||
|
||||
// AUX gimbals cannot report their own orientation, so the driver publishes it.
|
||||
bool publishes_mount_orientation() const override { return true; }
|
||||
|
||||
Reference in New Issue
Block a user