Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::turret::ChassisFieldYawSystem Class Reference

#include <chassis_field_yaw_system.hpp>

Inheritance diagram for fang::turret::ChassisFieldYawSystem:
Collaboration diagram for fang::turret::ChassisFieldYawSystem:

Classes

struct  Config
 

Public Types

using Motor = motor::IPositionMotor
 
using Imu = trap::communication::sensors::IImu
 

Public Member Functions

 ChassisFieldYawSystem (std::unique_ptr< Motor > motor, std::unique_ptr< Imu > chassisImu, const Config &config)
 
void initialize () override
 
void update () override
 
void setTargetFieldYaw (const Radians &yaw) override
 

Detailed Description

This is for a yaw system who's IMU is attached to the chassis and the yaw is parallel to the chassis z axis.

Assume that with the axis pointing up, the positive yaw counterclockwise

Member Typedef Documentation

◆ Imu

◆ Motor

Constructor & Destructor Documentation

◆ ChassisFieldYawSystem()

fang::turret::ChassisFieldYawSystem::ChassisFieldYawSystem ( std::unique_ptr< Motor motor,
std::unique_ptr< Imu chassisImu,
const Config config 
)

Member Function Documentation

◆ initialize()

void fang::turret::ChassisFieldYawSystem::initialize ( )
override

◆ setTargetFieldYaw()

void fang::turret::ChassisFieldYawSystem::setTargetFieldYaw ( const Radians yaw)
override

◆ update()

void fang::turret::ChassisFieldYawSystem::update ( )
override

The documentation for this class was generated from the following files: