AP_Gripper: move gripper up to AP_Vehicle

also make the singleton return a reference rather than a pointer
This commit is contained in:
Peter Barker 2024-02-21 17:40:34 +11:00 committed by Peter Barker
parent b22185436e
commit 9a1a412152
2 changed files with 3 additions and 3 deletions

View File

@ -168,9 +168,9 @@ PASS_TO_BACKEND(grabbed)
namespace AP { namespace AP {
AP_Gripper *gripper() AP_Gripper &gripper()
{ {
return AP_Gripper::get_singleton(); return *AP_Gripper::get_singleton();
} }
}; };

View File

@ -88,7 +88,7 @@ private:
}; };
namespace AP { namespace AP {
AP_Gripper *gripper(); AP_Gripper &gripper();
}; };
#endif // AP_GRIPPER_ENABLED #endif // AP_GRIPPER_ENABLED