Esempio n. 1
0
void 
PrintHelper::gototask_print(GotoTask& task, const AircraftState &state) 
{
  abstracttask_print(task, state);
  if (task.tp) {
    std::ofstream f1("results/res-goto.txt");
    taskpoint_print(f1,*task.tp,state);
  }
}
Esempio n. 2
0
void
PrintHelper::gototask_print(const GotoTask &task,
                            const AircraftState &state)
{
    abstracttask_print(task, state);

    const TaskWaypoint *tp = task.GetActiveTaskPoint();
    if (tp != nullptr) {
        std::ofstream f1("output/results/res-goto.txt");
        taskpoint_print(f1, *tp, state);
    }
}
Esempio n. 3
0
void
PrintHelper::orderedtaskpoint_print(std::ostream& f,
                                    const OrderedTaskPoint& tp,
                                    const AircraftState& state,
                                    const int item)
{
    if (item==0) {
        taskpoint_print(f,tp,state);
        orderedtaskpoint_print_boundary(f,tp,state);
        f << "# Entered " << tp.GetEnteredState().time << "\n";
        f << "# Bearing travelled " << tp.GetVectorTravelled().bearing << "\n";
        f << "# Distance travelled " << tp.GetVectorTravelled().distance << "\n";
        f << "# Bearing remaining " << tp.GetVectorRemaining(state.location).bearing << "\n";
        f << "# Distance remaining " << tp.GetVectorRemaining(state.location).distance << "\n";
        f << "# Bearing planned " << tp.GetVectorPlanned().bearing << "\n";
        f << "# Distance planned " << tp.GetVectorPlanned().distance << "\n";
    }
}
Esempio n. 4
0
void 
PrintHelper::sampledtaskpoint_print(std::ostream& f, const SampledTaskPoint& tp,
                                    const AircraftState &state) 
{
  taskpoint_print(f,tp,state);
}