mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 00:50:34 +08:00
Formatting.
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ set(CMAKE_CXX_FLAGS
|
|||||||
-Wall
|
-Wall
|
||||||
-Weffc++
|
-Weffc++
|
||||||
-Werror
|
-Werror
|
||||||
#-Wfatal-errors
|
-Wfatal-errors
|
||||||
)
|
)
|
||||||
|
|
||||||
if (COVERALLS)
|
if (COVERALLS)
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ format_wildcards="""
|
|||||||
./test/*.*pp
|
./test/*.*pp
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
echo astyle: $astyle
|
||||||
|
echo format: $format
|
||||||
|
|
||||||
if [[ $format ]]
|
if [[ $format ]]
|
||||||
then
|
then
|
||||||
echo formatting
|
echo formatting
|
||||||
|
|||||||
+4
-3
@@ -21,7 +21,8 @@ int main()
|
|||||||
float dcm_data[] = {
|
float dcm_data[] = {
|
||||||
0.93629336, -0.27509585, 0.21835066,
|
0.93629336, -0.27509585, 0.21835066,
|
||||||
0.28962948, 0.95642509, -0.03695701,
|
0.28962948, 0.95642509, -0.03695701,
|
||||||
-0.19866933, 0.0978434 , 0.97517033};
|
-0.19866933, 0.0978434 , 0.97517033
|
||||||
|
};
|
||||||
Dcmf dcm_check(dcm_data);
|
Dcmf dcm_check(dcm_data);
|
||||||
|
|
||||||
// euler ctor
|
// euler ctor
|
||||||
@@ -39,8 +40,8 @@ int main()
|
|||||||
q.normalize();
|
q.normalize();
|
||||||
q.T().print();
|
q.T().print();
|
||||||
assert((q - Quatf(
|
assert((q - Quatf(
|
||||||
0.18257419, 0.36514837, 0.54772256, 0.73029674)
|
0.18257419, 0.36514837, 0.54772256, 0.73029674)
|
||||||
).norm() < eps);
|
).norm() < eps);
|
||||||
|
|
||||||
// euler to quaternion
|
// euler to quaternion
|
||||||
q = Quatf(euler_check);
|
q = Quatf(euler_check);
|
||||||
|
|||||||
Reference in New Issue
Block a user