CTRE Phoenix 6 C++ 25.1.0
Loading...
Searching...
No Matches
pid_ff.h File Reference
#include <units/angle.h>
#include <units/angular_acceleration.h>
#include <units/angular_velocity.h>
#include <units/current.h>
#include <units/dimensionless.h>
#include <units/voltage.h>

Go to the source code of this file.

Namespaces

namespace  ctre
 
namespace  ctre::unit
 

Macros

#define CTRE_PID_FF_UNIT_ADD(unit_name, output)
 

Macro Definition Documentation

◆ CTRE_PID_FF_UNIT_ADD

#define CTRE_PID_FF_UNIT_ADD ( unit_name,
output )
Value:
using unit_name##_per_turn = units::compound_unit<output, units::inverse<units::turns>>; \
using unit_name##_per_turn_t = units::unit_t<unit_name##_per_turn>; \
using unit_name##_per_turn_second = units::compound_unit<output, units::inverse<units::compound_unit<units::turns, units::seconds>>>; \
using unit_name##_per_turn_second_t = units::unit_t<unit_name##_per_turn_second>; \
using unit_name##_per_turn_per_second = units::compound_unit<output, units::inverse<units::turns_per_second>>; \
using unit_name##_per_turn_per_second_t = units::unit_t<unit_name##_per_turn_per_second>; \
using unit_name##_per_turn_per_second_squared = units::compound_unit<output, units::inverse<units::turns_per_second_squared>>; \
using unit_name##_per_turn_per_second_squared_t = units::unit_t<unit_name##_per_turn_per_second_squared>;