AP_Gripper: move gripper up to AP_Vehicle
also make the singleton return a reference rather than a pointer
This commit is contained in:
parent
b22185436e
commit
9a1a412152
@ -168,9 +168,9 @@ PASS_TO_BACKEND(grabbed)
|
||||
|
||||
namespace AP {
|
||||
|
||||
AP_Gripper *gripper()
|
||||
AP_Gripper &gripper()
|
||||
{
|
||||
return AP_Gripper::get_singleton();
|
||||
return *AP_Gripper::get_singleton();
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -88,7 +88,7 @@ private:
|
||||
};
|
||||
|
||||
namespace AP {
|
||||
AP_Gripper *gripper();
|
||||
AP_Gripper &gripper();
|
||||
};
|
||||
|
||||
#endif // AP_GRIPPER_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user