source: flair-src/branches/mavlink/lib/FlairFilter/src/EulerDerivative.cpp@ 113

Last change on this file since 113 was 15, checked in by Bayard Gildas, 8 years ago

sources reformatted with flair-format-dir script

File size: 1.4 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5// created: 2011/05/01
6// filename: EulerDerivative.cpp
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Class defining an euler derivative
14//
15//
16/*********************************************************************/
17
18#include "EulerDerivative.h"
19#include "EulerDerivative_impl.h"
20#include <cvmatrix.h>
21#include <LayoutPosition.h>
22
23using std::string;
24using namespace flair::core;
25using namespace flair::gui;
26
27namespace flair {
28namespace filter {
29
30EulerDerivative::EulerDerivative(const IODevice *parent,
31 const LayoutPosition *position, string name,
32 const cvmatrix *init_value)
33 : IODevice(parent, name) {
34 pimpl_ = new EulerDerivative_impl(this, position, name, init_value);
35 AddDataToLog(pimpl_->output);
36}
37
38EulerDerivative::~EulerDerivative() { delete pimpl_; }
39
40cvmatrix *EulerDerivative::Matrix(void) const { return pimpl_->output; }
41
42float EulerDerivative::Output(int row, int col) const {
43 return pimpl_->output->Value(row, col);
44}
45
46void EulerDerivative::UpdateFrom(const io_data *data) {
47 pimpl_->UpdateFrom(data);
48 ProcessUpdate(pimpl_->output);
49}
50
51} // end namespace filter
52} // end namespace flair
Note: See TracBrowser for help on using the repository browser.