Skip to content

Funkcije

urban-b edited this page May 12, 2018 · 49 revisions

Robot

robot.go()

robot.turn()

robot.drive()

robot.beep()

robot.buttonPressed()

robot.battery()

robot.setWidth()

Motor

robot.motor[].getVoltage()

robot.motor[].setVoltage()

robot.motor[].getSpeed()

robot.motor[].setSpeed()

robot.motor[].setGains()

robot.motor[].setILimit()

robot.motor[].getCurrent()

robot.motor[].getDistance()

robot.motor[].resetDistance()

robot.motor[].getDiameter()

robot.motor[].setDiameter()

Senzorji za črto

robot.line.calibrate()

robot.line.getPosition()

robot.line.getAngle()

robot.line.setThresholdLine()

robot.line.setThresholdInclude()

robot.line.setColor()

robot.line.getOnLine()

robot.line.setLength()

Senzorji razdalje

robot.distance.readRaw()

robot.distance.sensorsRaw[]

Merilnik zasuka (IMU)

robot.imu.begin()

robot.imu.readSensor()

robot.imu.getAccelX_mss()

robot.imu.getAccelY_mss()

robot.imu.getAccelZ_mss()

robot.imu.getGyroX_rads()

robot.imu.getGyroY_rads()

robot.imu.getGyroZ_rads()

robot.imu.getMagX_uT()

robot.imu.getMagY_uT()

robot.imu.getMagZ_uT()

robot.imu.getTemperature_C()

Test

test.motor()

test.distance()

test.line()

test.buzzer()

test.battery()

test.temp() - TRENUTNO NE DELUJE

test.mag() - TRENUTNO NE DELUJE

test.accel() - TRENUTNO NE DELUJE

test.gyro() - TRENUTNO NE DELUJE

Clone this wiki locally