Skip to content

Commit

Permalink
[modules] dc: remove unneeded dc_buffer* variables
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Dec 3, 2014
1 parent 905719f commit a591309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions sw/airborne/modules/digital_cam/dc.c
Expand Up @@ -73,7 +73,6 @@ uint8_t dc_autoshoot_quartersec_period;
#ifdef SENSOR_SYNC_SEND

uint16_t dc_photo_nr = 0;
uint16_t dc_buffer = 0;

#include "mcu_periph/uart.h"
#include "messages.h"
Expand All @@ -99,8 +98,7 @@ void dc_send_shot_position(void)
uint16_t speed = (*stateGetHorizontalSpeedNorm_f()) * 10;
int16_t photo_nr = -1;

if (dc_buffer < DC_IMAGE_BUFFER) {
dc_buffer++;
if (dc_photo_nr < DC_IMAGE_BUFFER) {
dc_photo_nr++;
photo_nr = dc_photo_nr;
}
Expand Down Expand Up @@ -128,7 +126,7 @@ uint8_t dc_info(void) {
&stateGetPositionLla_i()->lon,
&stateGetPositionLla_i()->alt,
&course,
&dc_buffer,
&dc_photo_nr,
&dc_gps_dist,
&dc_gps_next_dist,
&dc_gps_x,
Expand Down
2 changes: 0 additions & 2 deletions sw/airborne/modules/digital_cam/dc.h
Expand Up @@ -66,8 +66,6 @@ extern float dc_gps_x, dc_gps_y;

extern float dc_circle_last_block;

extern uint8_t dc_buffer_timer;

/** camera angle */
extern float dc_cam_angle;
extern uint8_t dc_cam_tracing;
Expand Down

0 comments on commit a591309

Please sign in to comment.