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/wheel_speeds_frame.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (24 sloc)
718 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 WHEEL_SPEEDS_FRAME_H | |
#define WHEEL_SPEEDS_FRAME_H | |
#include "process_frame.h" | |
#include <candata.h> | |
#include <array> | |
#include <stdexcept> | |
class WheelSpeedsFrame : public ProcessFrame | |
{ | |
public: | |
using rpm_t = int; | |
const rpm_t rpm( size_t index ) const; | |
const rpm_t front_left() const; | |
const rpm_t front_right() const; | |
const rpm_t rear_left() const; | |
const rpm_t rear_right() const; | |
const rpm_t fastest() const; | |
WheelSpeedsFrame(); | |
virtual ~WheelSpeedsFrame() = default; | |
private: | |
virtual void _process( const can_frame& frame ) override; | |
virtual void _print( std::ostream& os ) const override; | |
candata_vcu2_ai_speeds_t data; | |
}; | |
#endif // WHEEL_SPEEDS_FRAME_H |