23 lines
374 B
C++
23 lines
374 B
C++
/**
|
|
* @file menuSpeed.cpp
|
|
* @author Alexander Klein (alex@kleiax.de)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2023-09-26
|
|
*
|
|
* @copyright Copyright (c) 2023
|
|
*
|
|
*/
|
|
|
|
#include "menuSpeed.h"
|
|
|
|
void MenuSpeed::action(int16_t *values, uint8_t length)
|
|
{
|
|
if (length != 2)
|
|
{
|
|
return;
|
|
}
|
|
this->speeds.x = values[0] / 10.0;
|
|
this->speeds.rot = values[1] / 10.0;
|
|
}
|