JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
tank_model.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
8
9namespace frcsim {
10
11class RigidBody;
12
16class TankModel {
17public:
18 TankModel() = default;
19 virtual ~TankModel() = default;
20
28 virtual void Update(RigidBody* chassis, double leftVolts, double rightVolts, double dt) = 0;
29};
30
31} // namespace frcsim
Simulated rigid body with translational/angular dynamics and optional aero metadata.
Definition rigid_body.hpp:44
virtual ~TankModel()=default
TankModel()=default
virtual void Update(RigidBody *chassis, double leftVolts, double rightVolts, double dt)=0
Updates the chassis dynamics using left and right wheel speeds/torques.
Definition vector.hpp:13