File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ void CameraControlTask::execute()
155
155
156
156
// handle taking and storing photos
157
157
if (sfr::camera::take_photo == true && sfr::camera::powered == true ) {
158
- // extra 200ms delay between commanding photo and triggering capture
159
- if (sfr::camera::start_progress < 8 ) {
158
+ // extra delay (200 ms default) between commanding photo and triggering capture
159
+ if (sfr::camera::start_progress < (sfr::camera::delay_count + 6 ) ) {
160
160
sfr::camera::start_progress++;
161
161
#ifdef VERBOSE
162
162
Serial.println (" Photo triggered, delaying additional 100ms" );
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ namespace sfr {
17
17
SFRField<uint8_t > max_stable_gyro_y = SFRField<uint8_t >((0.2 * constants::imu::sfr_resolution), 0x1502 , constants::imu::sfr_resolution); // rad/s
18
18
SFRField<uint8_t > min_unstable_gyro_x = SFRField<uint8_t >((0.7 * constants::imu::sfr_resolution), 0x1503 , constants::imu::sfr_resolution); // rad/s
19
19
SFRField<uint8_t > min_unstable_gyro_y = SFRField<uint8_t >((0.7 * constants::imu::sfr_resolution), 0x1504 , constants::imu::sfr_resolution); // rad/s
20
- } // namespace detumble
20
+ } // namespace detumble
21
21
namespace aliveSignal {
22
22
// OP Codes 1600
23
23
SFRField<bool > downlinked = SFRField<bool >(false , 0x1600 );
@@ -139,6 +139,7 @@ namespace sfr {
139
139
SFRField<uint32_t > fragment_number_requested = SFRField<uint32_t >(0 , 0x2016 );
140
140
SFRField<uint32_t > power_start_time = SFRField<uint32_t >(0 , 0x2017 );
141
141
SFRField<uint32_t > power_time = SFRField<uint32_t >(400 , 0x2018 );
142
+ SFRField<uint8_t > delay_count = SFRField<uint8_t >(2 , 0x2019 );
142
143
} // namespace camera
143
144
namespace rockblock {
144
145
// OP Codes 2100
@@ -283,4 +284,4 @@ namespace sfr {
283
284
SFRField<uint32_t > dynamic_data_age = SFRField<uint32_t >(0 , 0x2809 );
284
285
SFRField<uint32_t > sfr_data_age = SFRField<uint32_t >(0 , 0x2810 );
285
286
} // namespace eeprom
286
- }; // namespace sfr
287
+ }; // namespace sfr
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ namespace sfr {
159
159
extern SFRField<uint32_t > fragment_number_requested;
160
160
extern SFRField<uint32_t > power_start_time;
161
161
extern SFRField<uint32_t > power_time;
162
+ extern SFRField<uint8_t > delay_count;
162
163
} // namespace camera
163
164
namespace rockblock {
164
165
// OP Codes 2100
@@ -286,6 +287,6 @@ namespace sfr {
286
287
extern SFRField<uint32_t > dynamic_data_age;
287
288
extern SFRField<uint32_t > sfr_data_age;
288
289
} // namespace eeprom
289
- }; // namespace sfr
290
+ }; // namespace sfr
290
291
291
292
#endif
You can’t perform that action at this time.
0 commit comments