33 #define CAM_MODE_OFF 0
34 #define CAM_MODE_ANGLES 1
35 #define CAM_MODE_NADIR 2
36 #define CAM_MODE_XY_TARGET 3
37 #define CAM_MODE_WP_TARGET 4
38 #define CAM_MODE_AC_TARGET 5
39 #define CAM_MODE_STABILIZED 6
44 #define CAM_PAN_MAX 90
47 #define CAM_PAN_MIN -90
50 #define CAM_TILT_MAX 90
53 #define CAM_TILT_MIN -90
78 #define cam_SetPanCommand(x) { cam_pan_command = x; command_set(COMMAND_CAM_PAN, cam_pan_command);}
80 #define cam_SetTiltCommand(x) { cam_tilt_command = x; command_set(COMMAND_CAM_TILT, cam_tilt_command);}
83 extern float test_cam_estimator_x;
84 extern float test_cam_estimator_y;
85 extern float test_cam_estimator_z;
86 extern float test_cam_estimator_phi;
87 extern float test_cam_estimator_theta;
88 extern float test_cam_estimator_hspeed_dir;
91 #if defined(COMMAND_CAM_PWR_SW) || defined(VIDEO_TX_SWITCH)
93 extern bool video_tx_state;
94 #define VIDEO_TX_ON() { video_tx_state = 1; 0; }
95 #define VIDEO_TX_OFF() { video_tx_state = 0; 0; }
void cam_periodic(void)
For CAM_MODE_AC_TARGET mode.
uint8_t cam_target_wp
For CAM_MODE_XY_TARGET mode.
uint8_t cam_target_ac
For CAM_MODE_WP_TARGET mode.
float cam_target_x
Radians, for CAM_MODE_ANGLES mode.
Hardware independent code for commands handling.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.