-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement simultaneous camera connect (#127)
* Add per-camera task and queue. Lay the foundation for supporting simultaneous, parallel camera connections. The UI now sends commands to the control task, which relays them to per-camera tasks. This allows the UI and each connected camera to operate asynchronously. Increase limit maximum clients from 3 to 8. * Display human readable mobile device names. Fix #100 by updating to a development cut of NimBLE-Arduino. Whilst here improve device bond handling, this makes subsequent pair/forget sequences a little less iffy. * Implement multi-connect. M5ez: Add context to menu item advanced function. Furble: Tweak NimBLE settings. Remove scan duration, now scan forever as we can stop on demand. Drop global interval_t, load as needed to reduce variable scope. Add setting to toggle multi-connect. Modify connection menu to support tagging cameras. Add ability to connect to all tagged cameras. Cannot get directed advertising to mobile devices so still disabled. Multi-connect to mobile devices is super iffy, not recommended for production use. * Tweak the code style a little. Fix minor error in shutter lock formatting, introduced when migrating from String to std::string. Also removed unused macros. * Update clang-format action version. * Fix m5stack-core build. * Minor style updates. Move some more code into std::string native and const a few more parameters. * Further C++ refactoring. Refactor the Camera type into the base Camera class. Refactor fillSaveName into CameraList class, it is only used there. Style adjustments.
- Loading branch information
Showing
37 changed files
with
737 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#ifndef FURBLE_GPS_H | ||
#define FURBLE_GPS_H | ||
|
||
#include <Camera.h> | ||
#include <TinyGPS++.h> | ||
|
||
#include "furble_control.h" | ||
|
||
extern TinyGPSPlus furble_gps; | ||
|
||
extern bool furble_gps_enable; | ||
|
||
void furble_gps_init(void); | ||
void furble_gps_update(Furble::Camera *camera); | ||
void furble_gps_update(Furble::Control *control); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.