tedski999 / bangnet

Using networks of highly remote LoRa devices to trilaterate the source of loud bangs for early detection of lightning-strike wildfires, as part of a group project for CS7NS2 Internet of Things.
GNU General Public License v3.0
1 stars 0 forks source link

Migrate servo code to use ESP-IDF #18

Closed cianmawhinney closed 6 months ago

cianmawhinney commented 6 months ago

Rewrites the servo controller code to use ESPIDF, (also uses a few arduino librarie, like wifi).

Based on a slightly out of date version of 9-updating-software

Keeps the behaviour (mostly) the same between this version and the arduino one.

Closes #13

Will work on #14 once this is merged

tedski999 commented 6 months ago

Can you drop /firmware/sensor/ and /.github/ from the pull? They might make it a bit of a nightmare to diff my changes in today.

Builds successfully with the following commands:

git clone --recursive --branch 13-espidf-migration git@github.com:tedski999/bangnet.git
espsecure.py generate_signing_key firmware/servo-espidf/secure_boot_signing_key.pem
idf.py build --project-dir firmware/servo-espidf

I've not got all the hardware to test fully, but it does flash to and boots on my LoRa32.

There are no synchronisation locks protecting access to the global cameraServoPosition. I don't think that will cause any issues, but if the devices randomly crashes or spurious angles are used, this would be the first thing I'd check.