WPILibC++ 2024.1.1-beta-4
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
11namespace 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 */
22UNIT_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>)
26 compound_unit<angle::degrees, inverse<cubed<time::seconds>>>)
27UNIT_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
31UNIT_ADD_CATEGORY_TRAIT(angular_jerk)
32
33using namespace angular_jerk;
34} // namespace units
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition: base.h:381
typename units::detail::inverse_impl< U >::type inverse
represents the inverse unit type of class U.
Definition: base.h:1146
typename units::detail::cubed_impl< U >::type cubed
represents the type of class U cubed.
Definition: base.h:1207
typename units::detail::compound_impl< U, Us... >::type compound_unit
Represents a unit type made up from other units.
Definition: base.h:1446
Unit Conversion Library namespace.
Definition: angle.h:31
degrees_per_second_cubed
Definition: angular_jerk.h:24
degrees
Definition: angle.h:43
deg_per_s_cu
Definition: angular_jerk.h:25
unit< std::ratio< 1, 180 >, radians, std::ratio< 1 > > UNIT_ADD(angle, arcsecond, arcseconds, arcsec, unit< std::ratio< 1, 60 >, arcminutes >) using namespace angle
Class representing SI base unit types.
Definition: base.h:769
Type representing an arbitrary unit.
Definition: base.h:896