Skip to content
Permalink
9d174c0f46
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
37 lines (31 sloc) 928 Bytes
#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