WPILibC++
2027.0.0-alpha-4
Loading...
Searching...
No Matches
RomiMotor.hpp
Go to the documentation of this file.
1
// Copyright (c) FIRST and other WPILib contributors.
2
// Open Source Software; you can modify and/or share it under the terms of
3
// the WPILib BSD license file in the root directory of this project.
4
5
#pragma once
6
7
#include "
wpi/hardware/motor/PWMMotorController.hpp
"
8
9
namespace
wpi::romi
{
10
11
/**
12
* @defgroup romi_api Romi Hardware API
13
* @{
14
*/
15
16
/**
17
* RomiMotor
18
*
19
* A general use PWM motor controller representing the motors on a Romi robot
20
*/
21
class
RomiMotor
:
public
wpi::PWMMotorController
{
22
public
:
23
/**
24
* Constructor for a RomiMotor.
25
*
26
* @param channel The PWM channel that the RomiMotor is attached to.
27
* 0 is left, 1 is right
28
*/
29
explicit
RomiMotor
(
int
channel);
30
31
RomiMotor
(
RomiMotor
&&) =
default
;
32
RomiMotor
&
operator=
(
RomiMotor
&&) =
default
;
33
};
34
35
/** @} */
36
37
}
// namespace wpi::romi
PWMMotorController.hpp
wpi::PWMMotorController
Common base class for all PWM Motor Controllers.
Definition
PWMMotorController.hpp:35
wpi::romi::RomiMotor::RomiMotor
RomiMotor(int channel)
Constructor for a RomiMotor.
wpi::romi::RomiMotor::RomiMotor
RomiMotor(RomiMotor &&)=default
wpi::romi::RomiMotor::operator=
RomiMotor & operator=(RomiMotor &&)=default
wpi::romi
Definition
RomiGyro.hpp:11
wpi
romi
RomiMotor.hpp
Generated on
for WPILibC++ by
1.15.0