39 lines
699 B
C++
39 lines
699 B
C++
/**
|
|
* @file menuSpeed.h
|
|
* @author Alexander Klein (alex@kleiax.de)
|
|
* @brief Contains a MenuIntInputWrapper to change speeds
|
|
* @version 0.1
|
|
* @date 2023-09-26
|
|
*
|
|
* @copyright Copyright (c) 2023
|
|
*
|
|
*/
|
|
|
|
#ifndef MENU_SPEED_H
|
|
#define MENU_SPEED_H
|
|
|
|
#include <menuIntInput.h>
|
|
#include "moveControl.h"
|
|
|
|
/**
|
|
* @brief A MenuIntInputWrapper class to change speeds
|
|
*/
|
|
class MenuSpeed : public MenuIntInputWrapper
|
|
{
|
|
public:
|
|
MenuSpeed(DrivingSpeeds &speeds) : speeds(speeds){};
|
|
|
|
/**
|
|
* @brief Changes the speeds
|
|
*
|
|
* @param values
|
|
* @param length
|
|
*/
|
|
void action(int16_t *values, uint8_t length) override;
|
|
|
|
private:
|
|
DrivingSpeeds &speeds;
|
|
};
|
|
|
|
#endif // MENU_SPEED_H
|