WPILibC++
2025.1.1
Loading...
Searching...
No Matches
RomiMotor.h
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 <
frc/motorcontrol/PWMMotorController.h
>
8
9
namespace
frc
{
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
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 frc
PWMMotorController.h
frc::PWMMotorController
Common base class for all PWM Motor Controllers.
Definition
PWMMotorController.h:35
frc::RomiMotor
RomiMotor.
Definition
RomiMotor.h:21
frc::RomiMotor::RomiMotor
RomiMotor(RomiMotor &&)=default
frc::RomiMotor::RomiMotor
RomiMotor(int channel)
Constructor for a RomiMotor.
frc::RomiMotor::operator=
RomiMotor & operator=(RomiMotor &&)=default
frc
Definition
CAN.h:11
frc
romi
RomiMotor.h
Generated on Thu Jan 2 2025 00:19:43 for WPILibC++ by
1.12.0