Created
March 22, 2015 21:05
-
-
Save reportbase/f397210435026a910c74 to your computer and use it in GitHub Desktop.
rs32f test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline void rs32f_test(const char*, const char*, void*, node<message*>** errors) | |
{ | |
int status; | |
float data[] = {43.13, 42.66, 43.42, 44.57, 44.22, 44.18, 44.03, 45.35, 45.78, 46.45, 45.71, 46.25, | |
46.21, 45.64, 46.22, 46.41, 46.03, 46.00, 46.28, 46.28, 45.61, 46.03, 45.89, 46.08, | |
45.84, 45.42, 45.10, 44.83, 44.33, 43.61, 44.15, 44.09, 44.34 | |
}; | |
float rs [] = {0.60701822435637, 0.49431092655862, 0.594999156777, 0.8336246868167, | |
0.72025005002827, 0.70824775083558, 0.66638402420065, 1.01705518638599, 1.20787462282414, | |
1.6579536425235, 1.27579435639859, 1.72161776689015, 1.69757052044223, 1.3795, 1.9722, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | |
}; | |
unsigned long size = sizeof(data) / sizeof(float); | |
float result[30] = {0}; | |
rs_32f(data, result, size, 14); | |
echo()(data, rs, result, size); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment