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:55


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:19