You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
417 B
18 lines
417 B
#include <math.h> |
|
#include <stdio.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <unistd.h> |
|
|
|
#include <drivers/drv_hrt.h> |
|
#include <geo/geo.h> |
|
#include <px4iofirmware/px4io.h> |
|
#include <systemlib/err.h> |
|
#include <systemlib/mixer/mixer.h> |
|
|
|
#include "gtest/gtest.h" |
|
|
|
TEST(AutoDeclinationTest, AutoDeclination) |
|
{ |
|
ASSERT_NEAR(get_mag_declination(47.0, 8.0), 0.6, 0.5) << "declination differs more than 1 degree"; |
|
}
|
|
|