3D shot solution generator using table interpolation plus optional ballistic refinement.
More...
#include <shot_calculator.hpp>
3D shot solution generator using table interpolation plus optional ballistic refinement.
◆ ShotCalculator3D() [1/2]
| frcsim::ShotCalculator3D::ShotCalculator3D |
( |
| ) |
|
|
default |
◆ ShotCalculator3D() [2/2]
| frcsim::ShotCalculator3D::ShotCalculator3D |
( |
const Config & | config | ) |
|
|
inlineexplicit |
Constructs calculator with explicit configuration.
- Parameters
-
| config | Initial calculator configuration. |
◆ calculateShot()
| ShotParameters frcsim::ShotCalculator3D::calculateShot |
( |
const Vector3 & | flywheel_origin_m, |
|
|
const Vector3 & | robot_velocity_mps, |
|
|
const Vector3 & | target_position_m, |
|
|
double | now_s ) |
|
inline |
Computes a shot solution for current robot/target kinematics.
- Parameters
-
| flywheel_origin_m | Flywheel origin in world coordinates. |
| robot_velocity_mps | Robot chassis velocity in world frame. |
| target_position_m | Target center position in world coordinates. |
| now_s | Current timestamp in seconds. |
- Returns
- ShotParameters with validity flag and computed yaw/pitch/speed/time.
◆ clearHistory()
| void frcsim::ShotCalculator3D::clearHistory |
( |
| ) |
|
|
inline |
Clears learned recent-shot history used for contextual blending.
◆ config()
| const Config & frcsim::ShotCalculator3D::config |
( |
| ) |
const |
|
inline |
Returns active sanitized configuration.
- Returns
- Immutable config reference.
◆ lookupTable()
| const std::vector< TablePoint > & frcsim::ShotCalculator3D::lookupTable |
( |
| ) |
const |
|
inline |
Returns current lookup table.
- Returns
- Immutable vector reference of table points.
◆ setConfig()
| void frcsim::ShotCalculator3D::setConfig |
( |
const Config & | config | ) |
|
|
inline |
Replaces configuration after sanitization.
- Parameters
-
◆ setLookupTable()
| void frcsim::ShotCalculator3D::setLookupTable |
( |
std::vector< TablePoint > | points | ) |
|
|
inline |
Replaces lookup table with validated and distance-sorted points.
- Parameters
-
| points | Candidate table points to ingest. |
The documentation for this class was generated from the following file: