mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
cam control initial mode and commenting in chimu
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
<!DOCTYPE module SYSTEM "module.dtd">
|
<!DOCTYPE module SYSTEM "module.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
For older CHIMU v1.0 you should define CHIMU_BIG_ENDIAN
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
<module name="ins">
|
<module name="ins">
|
||||||
<!-- <depend conflict="ins" -->
|
<!-- <depend conflict="ins" -->
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ float test_cam_estimator_hspeed_dir;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CAM_TILT_NEUTRAL
|
#ifdef CAM_TILT_NEUTRAL
|
||||||
#if (CAM_TILT_MAX == CAM_TILT_NEUTRAL)
|
#if ((CAM_TILT_MAX) == (CAM_TILT_NEUTRAL))
|
||||||
#error CAM_TILT_MAX has to be different from CAM_TILT_NEUTRAL
|
#error CAM_TILT_MAX has to be different from CAM_TILT_NEUTRAL
|
||||||
#endif
|
#endif
|
||||||
#if (CAM_TILT_NEUTRAL == CAM_TILT_MIN)
|
#if (CAM_TILT_NEUTRAL == CAM_TILT_MIN)
|
||||||
@@ -98,7 +98,11 @@ void cam_waypoint_target(void);
|
|||||||
void cam_ac_target(void);
|
void cam_ac_target(void);
|
||||||
|
|
||||||
void cam_init( void ) {
|
void cam_init( void ) {
|
||||||
|
#ifdef CAM_MODE0
|
||||||
|
cam_mode = CAM_MODE0;
|
||||||
|
#else
|
||||||
cam_mode = CAM_MODE_OFF;
|
cam_mode = CAM_MODE_OFF;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void cam_periodic( void ) {
|
void cam_periodic( void ) {
|
||||||
@@ -183,7 +187,7 @@ void cam_nadir( void ) {
|
|||||||
cam_target_x = estimator_x;
|
cam_target_x = estimator_x;
|
||||||
cam_target_y = estimator_y;
|
cam_target_y = estimator_y;
|
||||||
#endif
|
#endif
|
||||||
cam_target_alt = 0;
|
cam_target_alt = -10;
|
||||||
cam_target();
|
cam_target();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user