CTRE_Phoenix 5.20.2
SensorCollection.h
1#pragma once
2
3#include "ctre/phoenix/ErrorCode.h"
4
5/* forward proto's */
6namespace ctre {
7 namespace phoenix {
8 namespace motorcontrol {
9 namespace can {
10 class BaseTalon;
11 }
12 }
13 }
14}
15
16namespace ctre {
17 namespace phoenix {
18 namespace motorcontrol {
19
31 public:
37
51
64 ErrorCode SetAnalogPosition(int newPosition, int timeoutMs = 0);
65
77
89
101
116 ErrorCode SetQuadraturePosition(int newPosition, int timeoutMs = 0);
117
138 ErrorCode SyncQuadratureWithPulseWidth(int bookend0, int bookend1, bool bCrossZeroOnInterval, int offset = 0, int timeoutMs = 0);
139
151
163
175 ErrorCode SetPulseWidthPosition(int newPosition, int timeoutMs = 0);
176
188
199
210
221
232
243
255
267
268 private:
269 SensorCollection(void* handle);
271 void* _handle;
272
273 };
274
275 } // namespace motorcontrol
276 } // namespace phoenix
277} // namespace ctre
Definition: SensorCollection.h:30
SensorCollection(ctre::phoenix::motorcontrol::can::BaseTalon &motorController)
ErrorCode SetQuadraturePosition(int newPosition, int timeoutMs=0)
ErrorCode SetPulseWidthPosition(int newPosition, int timeoutMs=0)
ErrorCode SyncQuadratureWithPulseWidth(int bookend0, int bookend1, bool bCrossZeroOnInterval, int offset=0, int timeoutMs=0)
ErrorCode SetAnalogPosition(int newPosition, int timeoutMs=0)
ErrorCode
Definition: ErrorCode.h:12
Definition: ErrorCode.h:5