#include <Omni3MD.h>
Public Member Functions | |
void | calibrate_omni () |
void | i2c_connect (byte omniAddress) |
void | mov_lin3M_pid (byte way1, byte speed1, byte way2, byte speed2, byte way3, byte speed3) |
float | read_battery () |
int | read_enc1 () |
int | read_enc2 () |
float | read_firmware () |
float | read_temperature () |
void | set_enc_value (byte encoder, word encValue) |
void | set_i2c_address (byte newAddress) |
void | set_i2c_timeout (byte timeout) |
void | set_PID (word Kp, word Ki, word Kd) |
void | set_prescaler (byte encoder, byte value) |
void | stop_motors () |
Private Member Functions | |
byte | i2cRequestData (byte addressValue, byte command) |
void | i2cSendData (byte addressValue, byte command, byte buffer[], byte numBytes) |
Private Attributes | |
byte | _omniAddress |
void Omni3MD::calibrate_omni | ( | ) |
Definition at line 54 of file Omni3MD.cpp.
void Omni3MD::i2c_connect | ( | byte | omniAddress | ) |
Definition at line 19 of file Omni3MD.cpp.
byte Omni3MD::i2cRequestData | ( | byte | addressValue, |
byte | command | ||
) | [private] |
Definition at line 25 of file Omni3MD.cpp.
void Omni3MD::i2cSendData | ( | byte | addressValue, |
byte | command, | ||
byte | buffer[], | ||
byte | numBytes | ||
) | [private] |
Definition at line 40 of file Omni3MD.cpp.
void Omni3MD::mov_lin3M_pid | ( | byte | way1, |
byte | speed1, | ||
byte | way2, | ||
byte | speed2, | ||
byte | way3, | ||
byte | speed3 | ||
) |
Definition at line 117 of file Omni3MD.cpp.
float Omni3MD::read_battery | ( | ) |
Definition at line 161 of file Omni3MD.cpp.
int Omni3MD::read_enc1 | ( | ) |
Definition at line 215 of file Omni3MD.cpp.
int Omni3MD::read_enc2 | ( | ) |
Definition at line 221 of file Omni3MD.cpp.
float Omni3MD::read_firmware | ( | ) |
Definition at line 168 of file Omni3MD.cpp.
float Omni3MD::read_temperature | ( | ) |
Definition at line 154 of file Omni3MD.cpp.
void Omni3MD::set_enc_value | ( | byte | encoder, |
word | encValue | ||
) |
Definition at line 91 of file Omni3MD.cpp.
void Omni3MD::set_i2c_address | ( | byte | newAddress | ) |
Definition at line 64 of file Omni3MD.cpp.
void Omni3MD::set_i2c_timeout | ( | byte | timeout | ) |
Definition at line 59 of file Omni3MD.cpp.
void Omni3MD::set_PID | ( | word | Kp, |
word | Ki, | ||
word | Kd | ||
) |
Definition at line 75 of file Omni3MD.cpp.
void Omni3MD::set_prescaler | ( | byte | encoder, |
byte | value | ||
) |
Definition at line 86 of file Omni3MD.cpp.
void Omni3MD::stop_motors | ( | ) |
Definition at line 144 of file Omni3MD.cpp.
byte Omni3MD::_omniAddress [private] |