12#include <units/angle.h>
13#include <units/angular_velocity.h>
14#include <units/voltage.h>
15#include <units/current.h>
its the or e mails sent from or on behalf of the Company are free of trojan timebombs or other harmful components Some jurisdictions do not allow the exclusion of certain types of warranties or limitations on applicable statutory rights of a so some or all of the above exclusions and limitations may not apply to You But in such a case the exclusions and limitations set forth in this section shall be applied to the greatest extent enforceable under applicable law To the extent any warranty exists under law that cannot be the Company shall be solely responsible for such warranty Severability and Waiver Severability If any provision of this Agreement is held to be unenforceable or such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect Waiver Except as provided the failure to exercise a right or to require performance of an obligation under this Agreement shall not affect a party s ability to exercise such right or require such performance at any time thereafter nor shall the waiver of a breach constitute waiver of any subsequent breach Product Claims The Company does not make any warranties concerning the Software United States Legal Compliance You represent and warrant or that has been designated by the United States government as a terrorist supporting at its sole to modify or replace this Agreement at any time If a revision is material we will provide at least days notice prior to any new terms taking effect What constitutes a material change will be determined at the sole discretion of the Company By continuing to access or use the Software after any revisions become You agree to be bound by the revised terms If You do not agree to the new You are no longer authorized to use the Software Governing Law The laws of the State of United States of excluding its conflicts of law shall govern this Agreement and your use of the Software Your use of the Software may also be subject to other state
Definition CTRE_LICENSE.txt:308
Class for CANdi, a CAN digital input device that detects when a digital signal is asserted or deasser...
Definition CoreCANdi.hpp:911
State of the Signal 1 input (S1IN).
Definition SpnEnums.hpp:3990
State of the Signal 2 input (S2IN).
Definition SpnEnums.hpp:4074
Class to control the state of a simulated hardware::CANdi.
Definition CANdiSimState.hpp:33
ctre::phoenix::StatusCode SetSupplyVoltage(units::voltage::volt_t volts)
Sets the simulated supply voltage of the CANdi.
ctre::phoenix::StatusCode SetPwm1RiseRise(units::time::second_t time)
Sets the simulated PWM1 Rise to Rise timing of the CANdi.
CANdiSimState & operator=(CANdiSimState const &)=delete
ctre::phoenix::StatusCode SetPwm2Connected(bool connected)
Sets whether a PWM sensor is connected to the S2 pin.
ctre::phoenix::StatusCode SetPwm2Position(units::angle::turn_t position)
Sets the simulated pulse width position of the CANdi.
ctre::phoenix::StatusCode SetRawQuadraturePosition(units::angle::turn_t position)
Sets the simulated raw quadrature position of the CANdi.
ctre::phoenix::StatusCode SetQuadratureVelocity(units::angular_velocity::turns_per_second_t velocity)
Sets the simulated pulse width velocity of the CANdi.
CANdiSimState & operator=(CANdiSimState &&)=default
int QuadratureEdgesPerRotation
The number of quadrature edges per sensor rotation for an external quadrature sensor attached to the ...
Definition CANdiSimState.hpp:71
ctre::phoenix::StatusCode SetS2State(ctre::phoenix6::signals::S2StateValue state)
Sets the state of the S2 pin.
CANdiSimState(hardware::core::CoreCANdi const &device, ChassisReference pwm1Orientation, ChassisReference pwm2Orientation, ChassisReference quadratureOrientation)
Creates an object to control the state of the given hardware::CANdi.
CANdiSimState(hardware::core::CoreCANdi const &device)
Creates an object to control the state of the given hardware::CANdi.
Definition CANdiSimState.hpp:81
ctre::phoenix::StatusCode SetPwm1Connected(bool connected)
Sets whether a PWM sensor is connected to the S1 pin.
ctre::phoenix::StatusCode SetOutputCurrent(units::current::ampere_t current)
Sets the simulated output current of the CANdi.
ctre::phoenix::StatusCode SetPwm2RiseRise(units::time::second_t time)
Sets the simulated PWM2 Rise to Rise timing of the CANdi.
ctre::phoenix::StatusCode SetS1State(ctre::phoenix6::signals::S1StateValue state)
Sets the state of the S1 pin.
CANdiSimState(CANdiSimState const &)=delete
ChassisReference Pwm2Orientation
The orientation of the PWM2 sensor relative to the robot chassis.
Definition CANdiSimState.hpp:56
ChassisReference QuadratureOrientation
The orientation of the Quadrature sensor relative to the robot chassis.
Definition CANdiSimState.hpp:66
ctre::phoenix::StatusCode SetPwm1RiseFall(units::time::second_t time)
Sets the simulated PWM1 Rise to Fall timing of the CANdi.
ctre::phoenix::StatusCode SetPwm1Position(units::angle::turn_t position)
Sets the simulated pulse width position of the CANdi.
ctre::phoenix::StatusCode SetPwm2Velocity(units::angular_velocity::turns_per_second_t velocity)
Sets the simulated pulse width velocity of the CANdi.
ChassisReference Pwm1Orientation
The orientation of the PWM1 sensor relative to the robot chassis.
Definition CANdiSimState.hpp:46
ctre::phoenix::StatusCode SetPwm2RiseFall(units::time::second_t time)
Sets the simulated PWM2 Rise to Fall timing of the CANdi.
ctre::phoenix::StatusCode SetPwm1Velocity(units::angular_velocity::turns_per_second_t velocity)
Sets the simulated pulse width velocity of the CANdi.
CANdiSimState(CANdiSimState &&)=default
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:27
ChassisReference
Represents the orientation of a device relative to the robot chassis.
Definition ChassisReference.hpp:16
@ CounterClockwise_Positive
The device should read a counter-clockwise rotation as positive motion.
Definition MotionMagicExpoTorqueCurrentFOC.hpp:18