mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
comments
This commit is contained in:
@@ -182,6 +182,7 @@ struct Int64Vect3 {
|
||||
};
|
||||
|
||||
|
||||
// Real (floating point) -> Binary Fixed Point (int)
|
||||
#define BFP_OF_REAL(_vr, _frac) ((_vr)*(1<<(_frac)))
|
||||
#define FLOAT_OF_BFP(_vbfp, _frac) ((float)(_vbfp)/(1<<(_frac)))
|
||||
#define RATE_BFP_OF_REAL(_af) BFP_OF_REAL((_af), INT32_RATE_FRAC)
|
||||
|
||||
Reference in New Issue
Block a user