DCAITI Robot Hardware  1.0
Static Public Member Functions | List of all members
UValue Class Reference

#include <UValue.hpp>

Static Public Member Functions

static void sendEncoderValue (U_Component cp, float value)
 sends encoder value via uart More...
 
static void sendBothEncoderValues (float speed_right, float speed_left, float pos_right, float pos_left)
 send both encoder values via uart More...
 

Member Function Documentation

◆ sendBothEncoderValues()

void UValue::sendBothEncoderValues ( float  speed_right,
float  speed_left,
float  pos_right,
float  pos_left 
)
static

send both encoder values via uart

sends the current speed of both motors

Parameters
value_leftencoder value left
value_rightencoder value right
speed_rightspeed of right motor
speed_leftspeed of left motor
pos_rightcurrent integrated position of right rotor
pos_leftcurrent integrated position of left rotor
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendEncoderValue()

void UValue::sendEncoderValue ( U_Component  cp,
float  value 
)
static

sends encoder value via uart

sends the current speed of both motors

Parameters
cpcomponent to which the value refers to
valueencoder value
cpcomponent
valuespeed of motor
Here is the call graph for this function:

The documentation for this class was generated from the following files: