parameters_test.cpp
Go to the documentation of this file.
1 #include <gtest/gtest.h>
2 #include "test_board.h"
3 #include "mavlink.h"
4 #include "rosflight.h"
5 
6 using namespace rosflight_firmware;
7 
8 #define EXPECT_PARAM_EQ_INT(id, value) EXPECT_EQ(value, rf.params_.get_param_int(id))
9 #define EXPECT_PARAM_EQ_FLOAT(id, value) EXPECT_EQ(value, rf.params_.get_param_float(id))
10 
11 TEST(parameters_test, default_parameters_test)
12 {
13  testBoard board;
14  Mavlink mavlink(board);
15  ROSflight rf(board, mavlink);
16 
17  rf.init();
18 
76 }
#define EXPECT_PARAM_EQ_FLOAT(id, value)
#define EXPECT_PARAM_EQ_INT(id, value)
TEST(parameters_test, default_parameters_test)
void init()
Main initialization routine for the ROSflight autopilot flight stack.
Definition: rosflight.cpp:52


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