WPILibC++ 2024.3.2
constants.h File Reference
#include "units/area.h"
#include "units/capacitance.h"
#include "units/charge.h"
#include "units/current.h"
#include "units/dimensionless.h"
#include "units/energy.h"
#include "units/force.h"
#include "units/impedance.h"
#include "units/length.h"
#include "units/magnetic_field_strength.h"
#include "units/mass.h"
#include "units/power.h"
#include "units/substance.h"
#include "units/temperature.h"
#include "units/time.h"
#include "units/velocity.h"

Go to the source code of this file.

Namespaces

namespace  units
 Unit Conversion Library namespace.
 
namespace  units::constants
 

Unit Containers

using units::constants::PI = unit< std::ratio< 1 >, dimensionless::scalar, std::ratio< 1 > >
 
static constexpr const unit_t< PI > units::constants::pi (1)
 Ratio of a circle's circumference to its diameter. More...
 
static constexpr const velocity::meters_per_second_t units::constants::c (299792458.0)
 Speed of light in vacuum. More...
 
static constexpr const unit_t< compound_unit< cubed< length::meters >, inverse< mass::kilogram >, inverse< squared< time::seconds > > > > units::constants::G (6.67408e-11)
 Newtonian constant of gravitation. More...
 
static constexpr const unit_t< compound_unit< energy::joule, time::seconds > > units::constants::h (6.626070040e-34)
 Planck constant. More...
 
static constexpr const unit_t< compound_unit< force::newtons, inverse< squared< current::ampere > > > > units::constants::mu0 (pi *4.0e-7 *force::newton_t(1)/units::math::cpow< 2 >(current::ampere_t(1)))
 vacuum permeability. More...
 
static constexpr const unit_t< compound_unit< capacitance::farad, inverse< length::meter > > > units::constants::epsilon0 (1.0/(mu0 *math::cpow< 2 >(c)))
 vacuum permitivity. More...
 
static constexpr const impedance::ohm_t units::constants::Z0 (mu0 *c)
 characteristic impedance of vacuum. More...
 
static constexpr const unit_t< compound_unit< force::newtons, area::square_meter, inverse< squared< charge::coulomb > > > > units::constants::k_e (1.0/(4 *pi *epsilon0))
 Coulomb's constant. More...
 
static constexpr const charge::coulomb_t units::constants::e (1.6021766208e-19)
 elementary charge. More...
 
static constexpr const mass::kilogram_t units::constants::m_e (9.10938356e-31)
 electron mass. More...
 
static constexpr const mass::kilogram_t units::constants::m_p (1.672621898e-27)
 proton mass. More...
 
static constexpr const unit_t< compound_unit< energy::joules, inverse< magnetic_field_strength::tesla > > > units::constants::mu_B (e *h/(4 *pi *m_e))
 Bohr magneton. More...
 
static constexpr const unit_t< inverse< substance::mol > > units::constants::N_A (6.022140857e23)
 Avagadro's Number. More...
 
static constexpr const unit_t< compound_unit< energy::joules, inverse< temperature::kelvin >, inverse< substance::moles > > > units::constants::R (8.3144598)
 Gas constant. More...
 
static constexpr const unit_t< compound_unit< energy::joules, inverse< temperature::kelvin > > > units::constants::k_B (R/N_A)
 Boltzmann constant. More...
 
static constexpr const unit_t< compound_unit< charge::coulomb, inverse< substance::mol > > > units::constants::F (N_A *e)
 Faraday constant. More...
 
static constexpr const unit_t< compound_unit< power::watts, inverse< area::square_meters >, inverse< squared< squared< temperature::kelvin > > > > > units::constants::sigma ((2 *math::cpow< 5 >(pi) *math::cpow< 4 >(R))/(15 *math::cpow< 3 >(h) *math::cpow< 2 >(c) *math::cpow< 4 >(N_A)))
 Stefan-Boltzmann constant. More...