[wpilib] Give Field2d a default Sendable name (#2953)

This commit is contained in:
Tyler Veness
2020-12-24 12:26:03 -08:00
committed by GitHub
parent f9d492f4b1
commit 9962f6fd79
3 changed files with 8 additions and 2 deletions

View File

@@ -20,6 +20,7 @@
#include "frc/geometry/Rotation2d.h"
#include "frc/smartdashboard/FieldObject2d.h"
#include "frc/smartdashboard/Sendable.h"
#include "frc/smartdashboard/SendableHelper.h"
namespace frc {
@@ -41,7 +42,7 @@ namespace frc {
* also be shown by using the GetObject() function. Other objects can
* also have multiple poses (which will show the object at multiple locations).
*/
class Field2d : public Sendable {
class Field2d : public Sendable, public SendableHelper<Field2d> {
public:
using Entry = size_t;