Gps Sensor

From ago control wiki
Jump to: navigation, search

Contents

GpsSensor

Agocontrol is able to manage Gps sensor.

Display

GpsSensor is displayed like other sensors with a widget containing:

  • name of your sensor
  • info of last position
  • a button to open a map

Writing my own GpsSensor

add_device("<device name>", "gpssensor")

Note that gpssensor allows system to have different behaviour with your sensor, so don't change it!

  • And finally send to agocontrol your position emitting this event:

emit_event_raw(<internalid>, "event.environment.positionchanged", "map{latitude=?, longitude=?}")

Installation

  • We need the gps module to run:
apt-get install python-gps

Informations

Personal tools