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
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);}
91#if defined(COMMAND_CAM_PWR_SW) || defined(VIDEO_TX_SWITCH)
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.