We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import coderbot bot = coderbot.CoderBot.get_instace()
Elapse is the duration, in seconds. The following commands are sync.
Elapse
Backward: bot.backward(speed=100, elapse=1)
bot.backward(speed=100, elapse=1)
Forward: bot.forward(speed=100, elapse=1)
bot.forward(speed=100, elapse=1)
Left: get_bot().left(speed=100, elapse=1)
get_bot().left(speed=100, elapse=1)
Right: get_bot().right(speed=100, elapse=1)
get_bot().right(speed=100, elapse=1)
bot.get_sonar_distance(i) gets the measured value from Sonar Sensor i.
bot.get_sonar_distance(i)
i
pactl list
Assuming ffmpeg and avconv are installed:
ffmpeg
avconv
raspivid -o - -t 0 -vf -hf -w [WIDTH] -h [HEIGHT] -fps [FRAMERATE] -b [BITRATE] | avconv -re -ar 44100 -ac 2 -acodec pcm_s16le -f pulse -i [AUDIO_DEVICE_NAME] -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv [RTMP_ENDPOINT]/[AUTH_TOKEN]