Functions | Variables
turbotrig_test.cpp File Reference
#include "math.h"
#include "common.h"
#include <stdio.h>
Include dependency graph for turbotrig_test.cpp:

Go to the source code of this file.

Functions

 TEST (turbotrig_test, atan_test)
 
 TEST (turbotrig_test, sin_cos_test)
 
 TEST (turbotrig_test, atan2_test)
 
 TEST (turbotrig_test, asin_test)
 
 TEST (turbotrig_test, fast_alt_test)
 
 TEST (turbovec_test, vector_test)
 
 TEST (turbovec_test, quaternion_test)
 
 TEST (turbovec_test, quat_from_two_vectors_test)
 

Variables

turbomath::Quaternion random_quaternions [25]
 
turbomath::Vector random_vectors [25]
 

Function Documentation

TEST ( turbotrig_test  ,
atan_test   
)

Definition at line 98 of file turbotrig_test.cpp.

TEST ( turbotrig_test  ,
sin_cos_test   
)

Definition at line 106 of file turbotrig_test.cpp.

TEST ( turbotrig_test  ,
atan2_test   
)

Definition at line 116 of file turbotrig_test.cpp.

TEST ( turbotrig_test  ,
asin_test   
)

Definition at line 130 of file turbotrig_test.cpp.

TEST ( turbotrig_test  ,
fast_alt_test   
)

Definition at line 141 of file turbotrig_test.cpp.

TEST ( turbovec_test  ,
vector_test   
)

Definition at line 161 of file turbotrig_test.cpp.

TEST ( turbovec_test  ,
quaternion_test   
)

Definition at line 213 of file turbotrig_test.cpp.

TEST ( turbovec_test  ,
quat_from_two_vectors_test   
)

Definition at line 270 of file turbotrig_test.cpp.

Variable Documentation

turbomath::Quaternion random_quaternions[25]
Initial value:
=
{
turbomath::Quaternion(0.10377420365, -0.583993115868, -0.731526280531, -0.0530049846003),
turbomath::Quaternion(-0.00228103177408, -0.506936771567, 0.976002181169, 0.90368722061),
turbomath::Quaternion(-0.280191704748, 0.141235897077, 0.770363502952, 0.306427689307),
turbomath::Quaternion(0.964538929753, -0.849755381903, 0.36374459234, 0.694507794584),
turbomath::Quaternion(0.0176390041681, -0.960155080148, 0.340078582124, -0.119639355159),
turbomath::Quaternion(-0.213139865459, -0.91618752978, -0.192746623826, -0.761937711418),
turbomath::Quaternion(-0.491440057128, -0.468120646081, -0.0682240789086, -0.779728041272),
turbomath::Quaternion(0.00414757516987, -0.980357614738, 0.243315557667, 0.487816606638),
turbomath::Quaternion(-0.593742280674, 0.245648066311, 0.682367014935, -0.0659175648814),
turbomath::Quaternion(-0.322464011587, 0.706588950729, -0.966024250287, -0.50354344519),
turbomath::Quaternion(-0.537023302971, -0.496355850419, -0.326843736039, 0.456606813517),
turbomath::Quaternion(-0.581585485434, 0.225766708322, -0.121402082687, 0.160333514827),
turbomath::Quaternion(-0.422711480811, 0.894994456476, 0.392582496229, 0.0035135659771),
turbomath::Quaternion(0.326380783544, 0.551413227108, 0.89489801397, 0.87883243747),
turbomath::Quaternion(0.83500683695, -0.263875030319, -0.1783391105, 0.453727091163),
turbomath::Quaternion(-0.30389938019, -0.0744317276089, -0.436917072268, 0.907173926266),
turbomath::Quaternion(-0.320066655494, -0.349065285706, 0.0336903431161, 0.573906603454),
turbomath::Quaternion(-0.103624452083, -0.82874783662, -0.635967208274, 0.562138574765),
turbomath::Quaternion(0.90735669209, -0.611711092446, 0.732474120503, 0.866697480004),
turbomath::Quaternion(0.626137839218, 0.41320663394, -0.821473642241, -0.344696411875),
turbomath::Quaternion(0.266650461152, -0.784707647527, 0.324347257562, -0.724904312141),
turbomath::Quaternion(0.964177603528, -0.378173605577, 0.767349174766, 0.560290218637),
turbomath::Quaternion(0.0812716046369, 0.745067180353, -0.476875959113, -0.245887902551),
turbomath::Quaternion(-0.177027678376, 0.214558558928, -0.992910369554, 0.592964390132),
turbomath::Quaternion(0.0979109306209, 0.121890109199, 0.126418158551, 0.242200145606)
}

Definition at line 68 of file turbotrig_test.cpp.

turbomath::Vector random_vectors[25]
Initial value:
=
{
turbomath::Vector(-0.0376278050814, 0.471775699711, -0.336572370974),
turbomath::Vector(0.842139998851, -0.113277302409, -0.435361598132),
turbomath::Vector(0.402876930871, -0.998517068538, 0.956603957591),
turbomath::Vector(0.366004030077, -0.966554559399, 0.236455814495),
turbomath::Vector(0.170963581611, -0.892193316086, -0.360102936987),
turbomath::Vector(-0.675191763273, -0.794118513048, 0.561367212903),
turbomath::Vector(-0.0299477253533, 0.0938177650483, 0.525814272724),
turbomath::Vector(-0.676191678521, -0.0780862208203, -0.272955681219),
turbomath::Vector(-0.435749833209, -0.673810649938, -0.896559097382),
turbomath::Vector(0.709083915552, -0.135067363969, -0.385492450532),
turbomath::Vector(-0.38728558039, -0.502219301225, 0.323557018529),
turbomath::Vector(-0.186870345154, 0.554827454101, 0.921567682061),
turbomath::Vector(-0.142106787605, -0.764876359963, 0.00303689980819),
turbomath::Vector(-0.677798963582, -0.664595954482, 0.339274533414),
turbomath::Vector(-0.700464041114, 0.325731535871, -0.621492014391),
turbomath::Vector(-0.604865828708, 0.270639620454, 0.188624833185),
turbomath::Vector(0.464205180183, -0.461504601245, -0.578708441515),
turbomath::Vector(0.498899172115, -0.582342366402, -0.694758083436),
turbomath::Vector(0.0710544604541, -0.63603887083, -0.521799692437),
turbomath::Vector(-0.372025413205, 0.83531212357, 0.232484576742),
turbomath::Vector(0.790872496361, -0.89600683592, 0.783984438621),
turbomath::Vector(0.236462609786, -0.636362560394, 0.203951290805),
turbomath::Vector(0.831924307534, -0.482532468579, 0.0600026189612),
turbomath::Vector(0.0562194856302, -0.605799189029, -0.556494338297),
turbomath::Vector(-0.85014432598, 0.0632157037573, 0.0272188414114)
}

Definition at line 38 of file turbotrig_test.cpp.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:28