powellb / librvr2

C library for programming the Sphero RVR from a Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

librvr2

C Library for programming a Sphero RVR from a Raspberry Pi

This repository holds the C source for a library that supports programing a Sphero RVR from a Raspoberry Pi. There are two directories:

  • src: This is the actual source code for the library. It can be compiled with using the Makefile. The Makefile builds "librvr.a", which can be used in the C builds.
  • tests: This holds a number of tests for the C library. There's a Makefile in there as well.

There is no documentation, sorry! I'll work on that.

The proper way to start a code sequence:

init_port();
set_logging_level(NOLOGGING);  //or VERBOSE or VERYVERBOSE

wake();

The code should refuse to start without "init_port()" being called.

A note should be made about sensors and notifications. "init_port()" starts a thread that fields all the input from the RVR. Sensor data and notifications are registered and accessible via "get_..." calls. See sensor.h for a list of calls and sensortest files for examples.

About

C library for programming the Sphero RVR from a Raspberry Pi


Languages

Language:C 96.6%Language:Makefile 2.2%Language:C++ 1.2%