Skip to content

Commit

Permalink
drone.ino template ready for task
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTheCoolest committed May 23, 2024
1 parent 9ccedfb commit b7213e9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions drone.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#include "simulator.cpp"

// void setupSensors()
// void setBotSpeed(float speed) m/s
// Total distance = 3km
// Maximum height reached by the drone = 1km
// double readUltrasoundEchoTime() - blocking function
// double readLatitude() - instantaneous function
// int NUMBER_OF_BUILDINGS

void loop() {
unsigned int echo_time = readUltrasoundEchoTime();
unsigned long int lat = readLatitude();
printf("%u %lu\n", echo_time, lat);
}

void setup() {
setupSensors();
setBotSpeed(40);
}

0 comments on commit b7213e9

Please sign in to comment.