Skip to content

Commit

Permalink
Remove extraneous constants from Arduino lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetmelon committed Sep 13, 2021
1 parent 9f816bb commit 48148d8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Arduino/ODriveArduino/ODriveArduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
#include "Arduino.h"
#include "ODriveArduino.h"

static const int kMotorOffsetFloat = 2;
static const int kMotorStrideFloat = 28;
static const int kMotorOffsetInt32 = 0;
static const int kMotorStrideInt32 = 4;
static const int kMotorOffsetBool = 0;
static const int kMotorStrideBool = 4;
static const int kMotorOffsetUint16 = 0;
static const int kMotorStrideUint16 = 2;

// Print with stream operator
template<class T> inline Print& operator <<(Print &obj, T arg) { obj.print(arg); return obj; }
template<> inline Print& operator <<(Print &obj, float arg) { obj.print(arg, 4); return obj; }
Expand Down

0 comments on commit 48148d8

Please sign in to comment.