WPILibC++
2025.0.0-alpha-1-14-g3b6f38d
angular_jerk.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 "
units/angle.h
"
8
#include "
units/base.h
"
9
#include "
units/time.h
"
10
11
namespace
units
{
12
/**
13
* @namespace units::angular_jerk
14
* @brief namespace for unit types and containers representing angular
15
* jerk values
16
* @details The SI unit for angular jerk is
17
* `radians_per_second_cubed`, and the corresponding `base_unit`
18
* category is`angular_jerk_unit`.
19
* @anchor angularJerkContainers
20
* @sa See unit_t for more information on unit type containers.
21
*/
22
UNIT_ADD
(angular_jerk, radians_per_second_cubed, radians_per_second_cubed,
23
rad_per_s_cu,
unit
<std::ratio<1>,
units::category::angular_jerk_unit
>)
24
UNIT_ADD
(angular_jerk,
degrees_per_second_cubed
,
degrees_per_second_cubed
,
25
deg_per_s_cu
,
26
compound_unit
<angle::
degrees
,
inverse
<
cubed
<time::seconds>>>)
27
UNIT_ADD
(angular_jerk, turns_per_second_cubed, turns_per_second_cubed,
28
tr_per_s_cu,
29
compound_unit
<angle::turns,
inverse
<
cubed
<time::seconds>>>)
30
31
UNIT_ADD_CATEGORY_TRAIT
(angular_jerk)
32
33
using namespace angular_jerk;
34
}
// namespace units
angle.h
units::inverse
typename units::detail::inverse_impl< U >::type inverse
represents the inverse unit type of class U.
Definition:
base.h:1137
units::cubed
typename units::detail::cubed_impl< U >::type cubed
represents the type of class U cubed.
Definition:
base.h:1198
units::compound_unit
typename units::detail::compound_impl< U, Us... >::type compound_unit
Represents a unit type made up from other units.
Definition:
base.h:1437
units
Unit Conversion Library namespace.
Definition:
temperature.h:31
units::degrees_per_second_cubed
degrees_per_second_cubed
Definition:
angular_jerk.h:24
units::degrees
degrees
Definition:
angle.h:43
units::deg_per_s_cu
deg_per_s_cu
Definition:
angular_jerk.h:25
units::UNIT_ADD
UNIT_ADD(temperature, kelvin, kelvin, K, unit< std::ratio< 1 >, units::category::temperature_unit >) UNIT_ADD(temperature
units::base_unit
Class representing SI base unit types.
Definition:
base.h:760
units::unit
Type representing an arbitrary unit.
Definition:
base.h:887
time.h
base.h
UNIT_ADD_CATEGORY_TRAIT
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition:
base.h:372
units
angular_jerk.h
Generated on Wed Jul 3 2024 17:20:03 for WPILibC++ by
1.9.4