30 lines
783 B
C++
30 lines
783 B
C++
// This is a personal academic project. Dear PVS-Studio, please check it.
|
|
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: https://pvs-studio.com
|
|
|
|
#include "BrushedMotor.hpp"
|
|
|
|
BrushedMotor::BrushedMotor(uint32_t PwmAGpioNum, uint32_t PwmBGpioNum, uint32_t PwmFreqHz,
|
|
uint32_t McpwmResolutionHz, int McpwmGroupId) {
|
|
_mcpwmResolutionHz = McpwmResolutionHz;
|
|
_pwmAGpioNum = McpwmGroupId;
|
|
_pwmBGpioNum = PwmBGpioNum;
|
|
_pwmFreqHz = PwmFreqHz;
|
|
}
|
|
|
|
void BrushedMotor::enable() {}
|
|
|
|
void BrushedMotor::disable() {}
|
|
|
|
void BrushedMotor::setDuty(uint16_t duty) {}
|
|
|
|
uint16_t BrushedMotor::maxDuty() {
|
|
return 0;
|
|
}
|
|
|
|
void BrushedMotor::forward() {}
|
|
|
|
void BrushedMotor::reverse() {}
|
|
|
|
void BrushedMotor::coast() {}
|
|
|
|
void BrushedMotor::brake() {} |