Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dpkoch committed Sep 1, 2016
1 parent 3d0584a commit 48e84c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
9 changes: 0 additions & 9 deletions include/mavrosflight/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,9 @@ class Param
MAV_PARAM_TYPE getType() const;
double getValue() const;

void setName(std::string name);
void setIndex(int index);
void setType(MAV_PARAM_TYPE type);
void setValue(double value);

void requestSet(double value, mavlink_message_t *msg);
bool handleUpdate(const mavlink_param_value_t &msg);

YAML::Node toYaml();

private:
void init(std::string name, int index, MAV_PARAM_TYPE type, float raw_value);

Expand Down Expand Up @@ -79,8 +72,6 @@ class Param
float expected_raw_value_;
};

YAML::Emitter& operator << (YAML::Emitter& out, const Param& param);

} // namespace mavrosflight

#endif // MAVROSFLIGHT_PARAM_H
31 changes: 0 additions & 31 deletions src/mavrosflight/param.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,6 @@ double Param::getValue() const
return value_;
}

void Param::setName(std::string name)
{
name_ = name;
}

void Param::setIndex(int index)
{
index_ = index;
}

void Param::setType(MAV_PARAM_TYPE type)
{
type_ = type;
}

void Param::setValue(double value)
{
value_ = value;
}

void Param::requestSet(double value, mavlink_message_t *msg)
{
if (value != value_)
Expand Down Expand Up @@ -104,17 +84,6 @@ bool Param::handleUpdate(const mavlink_param_value_t &msg)
return false;
}

YAML::Node Param::toYaml()
{
YAML::Node node;
node["name"] = name_;
node["index"] = index_;
node["type"] = (int) type_;
node["value"] = value_;

return node;
}

void Param::init(std::string name, int index, MAV_PARAM_TYPE type, float raw_value)
{
name_ = name;
Expand Down

0 comments on commit 48e84c8

Please sign in to comment.