Skip to content

Commit

Permalink
state interface: positions and speed done, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Feb 21, 2011
1 parent b7a09ce commit 6f8ded0
Show file tree
Hide file tree
Showing 2 changed files with 533 additions and 416 deletions.
12 changes: 12 additions & 0 deletions sw/airborne/math/pprz_algebra.h
Expand Up @@ -567,6 +567,18 @@
(_ri).r = RATE_BFP_OF_REAL((_rf).r); \
}

#define SPEEDS_FLOAT_OF_BFP(_ef, _ei) { \
(_ef).x = SPEED_FLOAT_OF_BFP((_ei).x); \
(_ef).y = SPEED_FLOAT_OF_BFP((_ei).y); \
(_ef).z = SPEED_FLOAT_OF_BFP((_ei).z); \
}

#define SPEEDS_BFP_OF_REAL(_ef, _ei) { \
(_ef).x = SPEED_BFP_OF_REAL((_ei).x); \
(_ef).y = SPEED_BFP_OF_REAL((_ei).y); \
(_ef).z = SPEED_BFP_OF_REAL((_ei).z); \
}

#define ACCELS_FLOAT_OF_BFP(_ef, _ei) { \
(_ef).x = ACCEL_FLOAT_OF_BFP((_ei).x); \
(_ef).y = ACCEL_FLOAT_OF_BFP((_ei).y); \
Expand Down

0 comments on commit 6f8ded0

Please sign in to comment.