Skip to content
Permalink
45d10e1110
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
34 lines (26 sloc) 825 Bytes
#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