1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include <controllib/uorb/blocks.hpp> using namespace control; class BlockSegwayController : public control::BlockUorbEnabledAutopilot { public: BlockSegwayController() : BlockUorbEnabledAutopilot(NULL,"SEG"), phi2spd(this, "PHI2SPD") { } void update(); private: BlockP phi2spd; };