YAMS
Yet Another Mechanism System
Loading...
Searching...
No Matches
YMotors.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 Yet Another Software Suite
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4#pragma once
5
6#include <numbers>
7#include <wpi/math/system/DCMotor.hpp>
8#include <wpi/units/angular_velocity.hpp>
9#include <wpi/units/current.hpp>
10#include <wpi/units/torque.hpp>
11#include <wpi/units/voltage.hpp>
12
13namespace yams::motorcontrollers {
14
20struct YMotors {
33 static constexpr wpi::math::DCMotor A301(int numMotors = 1) {
34 return wpi::math::DCMotor{
35 wpi::units::volt_t{12.0},
36 wpi::units::newton_meter_t{2.0 * 5.27 / 135.0},
37 wpi::units::ampere_t{100.0},
38 wpi::units::ampere_t{1.4},
39 wpi::units::radians_per_second_t{13500.0 * 2.0 * std::numbers::pi / 60.0},
40 numMotors};
41 }
42};
43
44} // namespace yams::motorcontrollers
Definition ADRCConfig.hpp:20
Definition YMotors.hpp:20
static constexpr wpi::math::DCMotor A301(int numMotors=1)
Definition YMotors.hpp:33