Skip to content
Snippets Groups Projects
Select Git revision
  • 9762728ce217399085dc649090f77db301d0b1d9
  • main default protected
  • tags/misc
  • tags/version-0.5r2
  • tags/version-0.6
  • tags/version-0.4
  • tags/version-0.5r1
  • tags/libxaal_v01
  • tags/generic-feedback-renderer_complexAPI
  • tags/testing-libsodium
  • tags/testing-nettle
  • tags/testing_ajax
  • tags/testing_clearsilver
  • tags/testing_jansson
  • tags/testing_jsmn
  • tags/testing_json-c
16 results

xaafloor

user avatar
clohr authored
git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/C/branches/version-0.7@2287 b32b6428-25c9-4566-ad07-03861ab6144f
5d6bb1b7
History
# xaafloor - xAAL SensFloor Fall Detector
This xAAL device connects (via USB or TCP) to a a SensFloor device (by FutureShape <http://future-shape.com/system/>)
Based on activation messages received from the SensFloor device, this xAAL device manage a table of the global floor state.
Then, it checks if the mats activation looks like a fall or someone lying on the floor.
In case of falls detections, it sends alerts on the xAAL bus.

A fall is defined by at least 8 contiguous triangle mats with an activation capacitance greater than 22.
(These magic thresholds sounds good...)

In order to be reactive, this device look at falls each time it receives a message from the SensFloor device, and also every 5 seconds.

The pseudo-recursive algorithm is rather simple and has some limitations:
- each triangle mat is checked several times; efficiency could be improved ;-)
- two close falls only separated by a single inactive triangle are considered as one global fall

Volunteers are welcomed to improve this.