CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
motor_constants.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
9#include <units/angular_velocity.h>
10#include <units/current.h>
11#include <units/torque.h>
12#include <units/voltage.h>
13
14namespace ctre {
15namespace unit {
16
17 using newton_meters_per_ampere = units::compound_unit<units::newton_meters, units::inverse<units::amperes>>;
18 using newton_meters_per_ampere_t = units::unit_t<newton_meters_per_ampere>;
19
20 using rpm_per_volt = units::compound_unit<units::revolutions_per_minute, units::inverse<units::volts>>;
21 using rpm_per_volt_t = units::unit_t<rpm_per_volt>;
22
23}
24}
units::compound_unit< units::newton_meters, units::inverse< units::amperes > > newton_meters_per_ampere
Definition motor_constants.h:17
units::compound_unit< units::revolutions_per_minute, units::inverse< units::volts > > rpm_per_volt
Definition motor_constants.h:20
units::unit_t< rpm_per_volt > rpm_per_volt_t
Definition motor_constants.h:21
units::unit_t< newton_meters_per_ampere > newton_meters_per_ampere_t
Definition motor_constants.h:18
Definition StatusCodes.h:18