1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00
Commit Graph

5706 Commits

Author SHA1 Message Date
1064554b87 Stepper: optimization on timing calculations
micros() is now called only once per cycle (instead of 3).

The rollover check is superflous because the "last_step_time" field
is unsigned.
2015-06-05 16:18:46 +02:00
0546bf04e0 Stepper library: updated version 2015-06-05 16:18:46 +02:00
50ca5d8f75 Stepper Library supports 5 phase, 5 wire motors. 2015-06-05 16:18:46 +02:00
caf000b005 Fixed unsigned var and version note 2015-06-05 16:18:46 +02:00
847816739f Update stepper library: High-speed stepping mod and timer rollover fix
When using the stepper library with a 1.8 degrees per step motor, and at high angular speeds, the current Stepper library leads to really loud and jittery rotation. This is due to the fact that the timing is calculated in milliseconds, and the delay length between steps is only 2.5 milliseconds when trying to spin at 120 rpm. Since only integer math is performed, you end up actually bouncing between different step delays, and thus speeds, from step to step instead of giving the motor a constant input.  Which causes the motor to freak out.

Changing the library to calculate the step delays in micros() solves that problem for any speed you can reasonably demand from your stepper motor. The down side is that the micros() counter rolls over every hour or so, and any move you perform after that point will hang your code. Easy fix for that is to add an || micros() - this->last_step_time < 0 to the while loop if statement in Stepper.cpp.
2015-06-05 16:18:46 +02:00
73eca890a8 Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-06-05 15:43:33 +02:00
b0f3fadc10 use int types for s32_t and u32_t. 2015-06-05 15:12:11 +02:00
b364bcb9de Remove unnecessary ICACHE_FLASH_ATTR 2015-06-05 15:58:44 +03:00
ce04a8e1eb fix parentheses warning 2015-06-05 14:57:12 +02:00
e07146a6de Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-06-05 14:47:34 +02:00
c754481e33 Boards/Lib manager: added "Close" button at lower right corner, so users with ungrateful window managers can close that modal using the mouse. Fixes #2884 2015-06-05 14:40:06 +02:00
9b8a26e324 Copy: Recent -> Open Recent 2015-06-05 13:28:46 +02:00
004078262e Add function to update sketch from Stream 2015-06-05 14:07:55 +03:00
28b4e0b24f Add some headers 2015-06-05 14:07:49 +03:00
4e3455b216 rename EspClass::eraseESPconfig to eraseConfig 2015-06-05 14:07:42 +03:00
1b8cbe7fc5 Clean up eboot 2015-06-05 14:07:35 +03:00
45c27c6686 Fix typo 2015-06-05 14:07:30 +03:00
fa6917fb13 Update README.md 2015-06-05 13:59:02 +03:00
3d43497675 do check if ssid is an empty String ""
use strdup to save some flash

#386 part 2
2015-06-05 12:57:00 +02:00
bc8be6f88e Merge pull request #370 from Links2004/esp8266
add better docu and schematics for easy setup the ESP
2015-06-05 13:55:34 +03:00
4725b3aa81 Merge pull request #371 from Makuna/esp8266
Update readme to include Servo
2015-06-05 13:53:22 +03:00
9c097a14dd Merge pull request #378 from chadouming/esp8266
Add function overload to config to include DNS
2015-06-05 13:52:26 +03:00
a501c26aff Merge pull request #377 from me-no-dev/esp8266
Fix redefinition of SPI_BUSY
2015-06-05 13:49:29 +03:00
99bc0a0ec0 Merge pull request #3294 from agdl/TemperatureWebPanelFix
Added literal float to improve precision
2015-06-05 12:45:59 +02:00
8a54c70a94 Added literal float to improve precision
according to #2922 I added missing float literals to improve the accuracy of the result.

If sensorValue = 1:

Before: voltage = 4

Now: voltage = 4.88
2015-06-05 12:29:50 +02:00
0a6841d9b0 New editor: when start is greater than end, delegate to upstream token maker, that will create an empty token. Fixes #3293 2015-06-05 12:12:21 +02:00
d0315a33e8 fix #386 2015-06-05 11:48:02 +02:00
1bd1c14d81 Make Cmd+Shift+Left/Right select from cursor to start/end of line (OS X).
Instead of selecting the entire line.
2015-06-04 17:09:43 -04:00
cdae13c3cc Update install.sh 2015-06-04 20:18:55 +03:00
3ecaf665ae Importing a subfolder of the sketchbook or importing a folder that contains the sketchbook is now blocked. Fixes #2795 2015-06-04 16:39:27 +02:00
5875909683 Folder/zip file is checked to be an actual library before importing it. Fixes #2861 2015-06-04 16:28:07 +02:00
25b886dee3 Update revisions.txt 2015-06-04 14:29:05 +02:00
0ae4f0bf42 Merge pull request #3279 from ffissore/system-proxy-settings
Use system proxy settings
2015-06-04 13:35:14 +02:00
0cb6b48e24 Boards/Lib managers: use system proxy settings (got rid of our proxy settings
in File > Preferences)
2015-06-04 13:34:44 +02:00
e9d66015a4 Windows: reg query uses different separators on xp, fooling parser. Fixed 2015-06-04 11:44:56 +02:00
3c982759c2 Code inspection: cleaned up processing.app.Editor 2015-06-04 11:02:59 +02:00
e33bd78a1d Recent sketches list updated even when a new sketch is saved. Fixes #3285 2015-06-04 10:41:13 +02:00
58f42fe44f Add function overload to config to include DNS
Disable DHCP if using static IP

With dhcp disabled, I noticed about 50% less conncection time
2015-06-03 15:29:25 -04:00
149f619d97 double 2015-06-03 22:23:19 +03:00
cf773e4c0f add some infos to Serial Adapter 2015-06-03 19:32:44 +02:00
bede6967d5 Installation folder check both at startup and when user attempts to change
sketchbook location. Fixes #2719
2015-06-03 17:46:01 +02:00
be738f229d only call wifi_set_opmode when really needed 2015-06-03 15:40:43 +02:00
2aab78ade9 fix ILI9341 (define for SPI speed was deleted?) 2015-06-03 15:40:11 +02:00
9dcc5a19b2 improve mode handling for ESP8266WiFiClass::scanNetworks and ESP8266WiFiClass::beginSmartConfig 2015-06-03 15:10:35 +02:00
054a901b99 New editor: keypad arrows were ignored. Added bindings to make them work like
normal arrows. No modifiers attached, so no shift/ctrl/etc combination: it
screws up text
Fixes #2317
2015-06-03 09:33:46 +02:00
41cc6d72fe edits 2015-06-02 16:00:51 -07:00
5ed4257e84 Include Servo Library in Readme 2015-06-02 15:59:22 -07:00
2af8acd9b2 add current note
fix image
2015-06-03 00:16:12 +02:00
0723133a1c add new schematics to README.md 2015-06-02 23:55:29 +02:00
7c67eca226 add images 2015-06-02 23:47:42 +02:00