Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
adas-api/include/control/brake_control_frame.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (31 sloc)
928 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BRAKE_CONTROL_FRAME_HPP | |
#define BRAKE_CONTROL_FRAME_HPP | |
#pragma once | |
#include "control/control_frame.hpp" | |
namespace adas_api{ | |
class BrakeControlFrame : public ControlFrame | |
{ | |
public: | |
BrakeControlFrame(); | |
virtual ~BrakeControlFrame() override = default; | |
void set_front( const float percentage ); | |
void set_rear( const float percentage ); | |
void set_brakes( const float percentage ); | |
const float get_front() const; | |
const float get_rear() const; | |
const bool on() const; | |
private: | |
/** | |
* @brief Generate can_frame for brake | |
* | |
* !TODO @warning | |
* | |
* @retval can_frame | |
*/ | |
virtual can_frame _process() const override; | |
virtual void _print( std::ostream& os ) const override; | |
float _front = 0.f; | |
float _rear = 0.f; | |
}; | |
}; | |
#endif // BRAKE_CONTROL_FRAME_HPP |