parameters_test.cpp
Go to the documentation of this file.
1 #include "mavlink.h"
2 #include "test_board.h"
3 
4 #include "rosflight.h"
5 
6 #include <gtest/gtest.h>
7 
8 using namespace rosflight_firmware;
9 
10 #define EXPECT_PARAM_EQ_INT(id, value) EXPECT_EQ(value, rf.params_.get_param_int(id))
11 #define EXPECT_PARAM_EQ_FLOAT(id, value) EXPECT_EQ(value, rf.params_.get_param_float(id))
12 
13 TEST(Parameters, DefaultParameters)
14 {
15  testBoard board;
16  Mavlink mavlink(board);
17  ROSflight rf(board, mavlink);
18 
19  rf.init();
20 
78 }
#define EXPECT_PARAM_EQ_FLOAT(id, value)
#define EXPECT_PARAM_EQ_INT(id, value)
TEST(Parameters, DefaultParameters)
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 Sat May 9 2020 03:16:53