Follows a person using the reference given by the stereocam.
This module does so by changing the yaw angle and roll angle alternatively. This way the drone does not drift away, and keeps looking at the person it tries to follow.
Example for airframe file
Add to your firmware section:
1 <module name="stereocam_follow_me"/>
Module functions
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- follow_me_periodic()
- Frequency in Hz: 512
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw stereocam_follow_me.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="stereocam_follow_me" dir="stereocam">
<doc>
<description> Follows a person using the reference given by the stereocam.
This module does so by changing the yaw angle and roll angle alternatively.
This way the drone does not drift away, and keeps looking at the person it tries to follow.
</description>
</doc>
<header>
<file name="stereocam_follow_me/follow_me.h"/>
</header>
<periodic fun="follow_me_periodic()" freq="512"/>
<makefile>
<file name="stereocam_follow_me/follow_me.c" />
</makefile>
</module>