heptagon/examples/MissionComputer_for_Core/mc_ext.h

49 lines
1.3 KiB
C
Raw Normal View History

#ifndef MC_EXT_H
#define MC_EXT_H
2011-09-06 14:30:30 +02:00
#include "typeArray.h"
2011-09-06 14:30:30 +02:00
typedef struct Mc_ext__mc_tracks_prio_sorttracks_out {
TypeTracks__tmissiontrack OutputTrack1;
TypeTracks__tmissiontrack OutputTrack2;
TypeTracks__tmissiontrack OutputTrack3;
TypeTracks__tmissiontrack OutputTrack4;
} Mc_ext__mc_tracks_prio_sorttracks_out;
/* =============== */
/* CYCLIC FUNCTION */
/* =============== */
2011-09-06 14:30:30 +02:00
void Mc_ext__mc_tracks_prio_sorttracks(
const TypeTracks__tmissiontrack *InputTrack1, const TypeTracks__tmissiontrack *InputTrack2,
const TypeTracks__tmissiontrack *InputTrack3, const TypeTracks__tmissiontrack *InputTrack4,
Mc_ext__mc_tracks_prio_sorttracks_out *out);
2011-09-06 14:30:30 +02:00
void Mc_ext__SortBlockPriorities(const TypeTracks__tmissiontrack *InputTrackA, const TypeTracks__tmissiontrack *InputTrackB, TypeTracks__tmissiontrack *OutputTrackA, TypeTracks__tmissiontrack *OutputTrackB);
2011-09-06 14:30:30 +02:00
float Mc_ext__CalculateVrDivD(const float _I0_Vr, const float _I1_D);
/* rand() */
typedef struct {
float o;
2011-09-06 14:30:30 +02:00
} Mc_ext__rand_out;
2011-09-06 14:30:30 +02:00
void Mc_ext__rand_step(Mc_ext__rand_out *out);
/* int_of_float */
typedef struct {
int o;
2011-09-06 14:30:30 +02:00
} Mc_ext__int_of_float_out;
2011-09-06 14:30:30 +02:00
void Mc_ext__int_of_float_step(float a, Mc_ext__int_of_float_out *out);
/* float_of_int */
typedef struct {
float o;
2011-09-06 14:30:30 +02:00
} Mc_ext__float_of_int_out;
2011-09-06 14:30:30 +02:00
void Mc_ext__float_of_int_step(int a, Mc_ext__float_of_int_out *out);
#endif