JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
arm.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
7namespace frcsim {
8
12class Arm {
13public:
14 Arm() = default;
15 virtual ~Arm() = default;
16
22 virtual void Update(double voltage, double dt) = 0;
23
28 virtual double GetAngle() const = 0;
29
34 virtual double GetVelocity() const = 0;
35};
36
37} // namespace frcsim
virtual double GetVelocity() const =0
Gets the current angular velocity of the arm.
virtual ~Arm()=default
Arm()=default
virtual double GetAngle() const =0
Gets the current angle of the arm.
virtual void Update(double voltage, double dt)=0
Updates the arm state based on applied voltage and physics.
Definition vector.hpp:13