Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1
Send Topic Print
Detecting interrupt from tilt sensor (Read 695 times)
radical
YaBB Newbies
*




Posts: 5
Detecting interrupt from tilt sensor
11/06/09 at 10:36am
 
Out tilt sensor (LIS3LV03DQ 3 axis accelerometer) sends an interrupt after reaching a particular measurement to the blackfin chip based on some code given from ST's website.  Our issue is that we are not sure how to make the blackfin use this interrupt to execute given code.  On our nav board we are trying to have the robot "realize" that it's gone XX degrees off course and then correct the direction based off this.  We just don't know how to use that interrupt on the actual chip.  Any advice would be great!
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Detecting interrupt from tilt sensor
Reply #1 - 11/06/09 at 11:57am
 
We don't use interrupts in the SRV-1 code.  You might get some ideas on using interrupts from this thread, but I suspect an easier approach will be to modify the failsafe logic in the main polling loop in main.c to monitor for values that are out of range.
 
As regards using the tilt sensor, is there for a flying robot ?  The tilt sensor will indicate attitude change, but you need gyros to detect off-course drift.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Pages: 1
Send Topic Print