2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
encoders.h
Go to the documentation of this file.
1
4
5
#pragma once
6
#include <ctre/phoenix/sensors/CANCoder.h>
7
8
namespace
encoder_conf
{
9
namespace
comp_bot {
10
struct
wristEncoder
{
11
constexpr
static
auto
direction
=
true
;
12
constexpr
static
auto
range
= ctre::phoenix::sensors::AbsoluteSensorRange::Unsigned_0_to_360;
13
};
14
struct
shoulderEncoderConf
{
15
constexpr
static
auto
direction
=
false
;
16
constexpr
static
auto
range
= ctre::phoenix::sensors::AbsoluteSensorRange::Signed_PlusMinus180;
17
};
18
struct
extensionEncoderConf
{
19
constexpr
static
auto
direction
=
true
;
20
constexpr
static
auto
range
= ctre::phoenix::sensors::AbsoluteSensorRange::Unsigned_0_to_360;
21
};
22
}
// namespace comp_bot
23
24
namespace
practice_bot {
25
using
wristEncoder
=
encoder_conf::comp_bot::wristEncoder
;
26
using
shoulderEncoderConf
=
encoder_conf::comp_bot::shoulderEncoderConf
;
27
using
extensionEncoderConf
=
encoder_conf::comp_bot::extensionEncoderConf
;
28
}
// namespace practice_bot
29
30
}
// namespace encoder_conf
encoder_conf
Definition
encoders.h:8
encoder_conf::comp_bot::extensionEncoderConf
Definition
encoders.h:18
encoder_conf::comp_bot::extensionEncoderConf::range
static constexpr auto range
Definition
encoders.h:20
encoder_conf::comp_bot::extensionEncoderConf::direction
static constexpr auto direction
Definition
encoders.h:19
encoder_conf::comp_bot::shoulderEncoderConf
Definition
encoders.h:14
encoder_conf::comp_bot::shoulderEncoderConf::range
static constexpr auto range
Definition
encoders.h:16
encoder_conf::comp_bot::shoulderEncoderConf::direction
static constexpr auto direction
Definition
encoders.h:15
encoder_conf::comp_bot::wristEncoder
Definition
encoders.h:10
encoder_conf::comp_bot::wristEncoder::range
static constexpr auto range
Definition
encoders.h:12
encoder_conf::comp_bot::wristEncoder::direction
static constexpr auto direction
Definition
encoders.h:11
src
main
include
constants
encoders.h
Generated by
1.9.8