8 #ifndef STATE_HANDLING_H 9 #define STATE_HANDLING_H 28 void tilde_to_bar (
const double,
const double,
double *);
29 void bar_to_tilde (
const double,
const double,
double *);
33 void get_controls (
const int,
const double *,
const int ind,
double *);
void bar_to_tilde(const double sinA, const double cosA, double *state)
Converts state from X_tilde to X_bar.
void tilde_to_bar(const double sinA, const double cosA, double *state)
Converts state from X_tilde to X_bar.
Various operations on the vector of states.
void orig_to_tilde(const double h, double *state)
Converts state from original variables to X_tilde.
void get_controls(const int preview_window_size, const double *X, const int ind, double *controls)
Returns the controls,that must be applied to reach the next state.
void tilde_to_orig(const double h, double *state)
Converts state from X_tilde to original variables.