Skip to content

RobotControl

詳細情報

メンバー

IRarray

uint16_t RobotControl::IRarray[5]

foreGround

uint16_t RobotControl::foreGround

backGround

uint16_t RobotControl::backGround

RobotControl()

RobotControl::RobotControl()

begin()

void RobotControl::begin()

setMode()

void RobotControl::setMode(uint8_t mode)

引数

  • uint8_t mode

digitalRead()

bool RobotControl::digitalRead(uint8_t port)

引数

  • uint8_t port

戻り値

bool

analogRead()

int RobotControl::analogRead(uint8_t port)

引数

  • uint8_t port

戻り値

int

digitalWrite()

void RobotControl::digitalWrite(uint8_t port, bool value)

引数

  • uint8_t port
  • bool value

analogWrite()

void RobotControl::analogWrite(uint8_t port, uint8_t value)

引数

  • uint8_t port
  • uint8_t value

updateIR()

void RobotControl::updateIR()

knobRead()

int RobotControl::knobRead()

戻り値

int

trimRead()

int RobotControl::trimRead()

戻り値

int

beginSpeaker()

void RobotControl::beginSpeaker(uint16_t frequency=44100)

引数

  • uint16_t frequency

playMelody()

void RobotControl::playMelody(char *script)

引数

  • char * script

playFile()

void RobotControl::playFile(char *filename)

引数

  • char * filename

stopPlayFile()

void RobotControl::stopPlayFile()

beep()

void RobotControl::beep(int beep_length=BEEP_SIMPLE)

引数

  • int beep_length

tempoWrite()

void RobotControl::tempoWrite(int tempo)

引数

  • int tempo

tuneWrite()

void RobotControl::tuneWrite(float tune)

引数

  • float tune

compassRead()

uint16_t RobotControl::compassRead()

戻り値

uint16_t

drawCompass()

void RobotControl::drawCompass(uint16_t value)

引数

  • uint16_t value

drawBase()

void RobotControl::drawBase()

drawDire()

void RobotControl::drawDire(int16_t dire)

引数

  • int16_t dire

keyboardCalibrate()

void RobotControl::keyboardCalibrate(int *vals)

引数

  • int * vals

keyboardRead()

int8_t RobotControl::keyboardRead()

戻り値

int8_t

moveForward()

void RobotControl::moveForward(int speed)

引数

  • int speed

moveBackward()

void RobotControl::moveBackward(int speed)

引数

  • int speed

turnLeft()

void RobotControl::turnLeft(int speed)

引数

  • int speed

turnRight()

void RobotControl::turnRight(int speed)

引数

  • int speed

motorsStop()

void RobotControl::motorsStop()

motorsWritePct()

void RobotControl::motorsWritePct(int speedLeftPct, int speedRightPct)

引数

  • int speedLeftPct
  • int speedRightPct

motorsWrite()

void RobotControl::motorsWrite(int speedLeft, int speedRight)

引数

  • int speedLeft
  • int speedRight

pointTo()

void RobotControl::pointTo(int degrees)

引数

  • int degrees

turn()

void RobotControl::turn(int degress)

引数

  • int degress

lineFollowConfig()

void RobotControl::lineFollowConfig(uint8_t KP, uint8_t KD, uint8_t robotSpeed, uint8_t intergrationTime)

引数

  • uint8_t KP
  • uint8_t KD
  • uint8_t robotSpeed
  • uint8_t intergrationTime

beginTFT()

void RobotControl::beginTFT(uint16_t foreGround=BLACK, uint16_t background=WHITE)

引数

  • uint16_t foreGround
  • uint16_t background

debugPrint()

void RobotControl::debugPrint(long value, uint8_t x=0, uint8_t y=0)

引数

  • long value
  • uint8_t x
  • uint8_t y

clearScreen()

void RobotControl::clearScreen()

drawBMP()

void RobotControl::drawBMP(char *filename, uint8_t x, uint8_t y)

引数

  • char * filename
  • uint8_t x
  • uint8_t y

_drawBMP()

void RobotControl::_drawBMP(uint32_t iconOffset, uint8_t x, uint8_t y, uint8_t width, uint8_t height)

引数

  • uint32_t iconOffset
  • uint8_t x
  • uint8_t y
  • uint8_t width
  • uint8_t height

_drawBMP()

void RobotControl::_drawBMP(char *filename, uint8_t x, uint8_t y)

引数

  • char * filename
  • uint8_t x
  • uint8_t y

beginBMPFromEEPROM()

void RobotControl::beginBMPFromEEPROM()

endBMPFromEEPROM()

void RobotControl::endBMPFromEEPROM()

beginSD()

void RobotControl::beginSD()

userNameRead()

void RobotControl::userNameRead(char *container)

引数

  • char * container

robotNameRead()

void RobotControl::robotNameRead(char *container)

引数

  • char * container

cityNameRead()

void RobotControl::cityNameRead(char *container)

引数

  • char * container

countryNameRead()

void RobotControl::countryNameRead(char *container)

引数

  • char * container

userNameWrite()

void RobotControl::userNameWrite(char *text)

引数

  • char * text

robotNameWrite()

void RobotControl::robotNameWrite(char *text)

引数

  • char * text

cityNameWrite()

void RobotControl::cityNameWrite(char *text)

引数

  • char * text

countryNameWrite()

void RobotControl::countryNameWrite(char *text)

引数

  • char * text

isActionDone()

bool RobotControl::isActionDone()

戻り値

bool

pauseMode()

void RobotControl::pauseMode(uint8_t onOff)

引数

  • uint8_t onOff

displayLogos()

void RobotControl::displayLogos()

waitContinue()

void RobotControl::waitContinue(uint8_t key=BUTTON_MIDDLE)

引数

  • uint8_t key