Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ConfigFile HCSR04 PID PPM2 mbed-rtos mbed
Revision 37:76bfd4e9c383, committed 2018-03-23
- Comitter:
- edy05
- Date:
- Fri Mar 23 14:29:09 2018 +0000
- Branch:
- DistanceRegulation
- Parent:
- 36:ed8b7b7b6cfa
- Child:
- 38:801fee0330e2
- Commit message:
- esp8266 - ch_pd removed from DB and pinned to board
Changed in this revision
--- a/ESP8266/Server.h Sun Mar 04 15:17:38 2018 +0000
+++ b/ESP8266/Server.h Fri Mar 23 14:29:09 2018 +0000
@@ -5,6 +5,7 @@
RawSerial esp(p13, p14); // tx, rx
DigitalOut reset(p11);
+DigitalOut chd_dp(p10);
// Standard Mbed LED definitions
DigitalOut led1(LED1); // (PTB18)
@@ -59,14 +60,18 @@
void serverRun(){
+ chd_dp = 1;
reset=0;
//pc.printf("\f\n\r------------ ESP8266 Hardware Reset --------------\n\r");
- //wait(0.5);
+ wait(0.5);
reset=1;
timeout=6000;
getcount=500;
getreply();
+ //Thread::wait(3000);
+ //reset = 1;
+ //Thread::wait(3000);
esp.baud(115200); // ESP8266 baudrate. Maximum on KLxx' is 115200, 230400 works on K20 and K22F
startserver();
webcounter = 0;
--- a/PID.lib Sun Mar 04 15:17:38 2018 +0000 +++ b/PID.lib Fri Mar 23 14:29:09 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/aberk/code/PID/#b03de6191e60 +http://mbed.org/users/aberk/code/PID/#1a8e62899e55
--- a/definitions.h Sun Mar 04 15:17:38 2018 +0000
+++ b/definitions.h Fri Mar 23 14:29:09 2018 +0000
@@ -16,10 +16,10 @@
#define AUX1 4
#define AUX2 5
-#define THROTTLE_LIMIT 1600
+#define THROTTLE_LIMIT 1500
-#define FLIGHT_CONTROLLER_FREQUENCY 200
+#define FLIGHT_CONTROLLER_FREQUENCY 100
/*
pc.printf("ROLL %d\n\r", channels[ROLL]);