Skip to content

Commit

Permalink
Removed old Utils from AppConvoyLeader
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Nov 5, 2023
1 parent 4423c32 commit 0e09a64
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/APPConvoyLeader/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,12 @@ void App::loop()

void App::reportPosition()
{
int32_t xPos;
int32_t yPos;
uint8_t outBuf[POSITION_CHANNEL_DLC];

Odometry::getInstance().getPosition(xPos, yPos);

Util::int32ToByteArray(&outBuf[0U], (sizeof(outBuf) - sizeof(int32_t)), xPos);
Util::int32ToByteArray(&outBuf[4U], (sizeof(outBuf) - sizeof(int32_t)), yPos);

m_smpServer.sendData(POSITION_CHANNEL, outBuf, sizeof(outBuf));
; /* Do nothing. */
}

void App::positionCallback(const uint8_t* payload, const uint8_t payloadSize)
{
; /* Do nothing. */
}

/******************************************************************************
Expand Down

0 comments on commit 0e09a64

Please sign in to comment.