Skip to main content

predict

Function predict 

Source
pub fn predict(
    root: &Path,
    flight: &PredictedFlight,
    weather: &WeatherConversion,
) -> Result<PredictionRow, RealFlightError>
Expand description

Predicts one flight: flies it from its record and reads its apogee as its log’s altimeter would. The log is hashed, never parsed.

§Errors

RealFlightError if a file is missing or doesn’t read, the thrust file holds negative thrust, the converted weather file is not the committed conversion or doesn’t read as the levels RocketPy read, or HPR Sim can’t fly it.