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/status/axle_torque_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.
34 lines (26 sloc)
825 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 AXLE_TORQUE_FRAME_HPP | |
#define AXLE_TORQUE_FRAME_HPP | |
#include "process_frame.hpp" | |
#include <candata.h> | |
#include <array> | |
#include <iostream> | |
#include <stdexcept> | |
#include <variant> | |
namespace adas_api{ | |
class AxleTorqueFrame : public ProcessFrame | |
{ | |
public: | |
const float get_current() const; | |
const float get_max() const; | |
const float get_requested() const; | |
bool is_front() const; | |
bool stopped() const; | |
AxleTorqueFrame( const bool front=true ); | |
virtual ~AxleTorqueFrame() = default; | |
private: | |
virtual void _process( const can_frame& frame ) override; | |
virtual void _print( std::ostream& os ) const override; | |
std::variant<candata_vcu2_ai_drive_f_t, candata_vcu2_ai_drive_r_t> data; | |
}; | |
}; | |
#endif // AXLE_TORQUE_FRAME_HPP |