Skip to content
Permalink
5d5afefb2e
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
33 lines (24 sloc) 718 Bytes
#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