1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-10 21:24:12 +01:00
Commit Graph

5050 Commits

Author SHA1 Message Date
Cristian Maglie
f2a8f517f0 Stepper: fixed indentation 2015-06-05 16:18:46 +02:00
Cristian Maglie
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
Cristian Maglie
0546bf04e0 Stepper library: updated version 2015-06-05 16:18:46 +02:00
Ryan Orendorff
50ca5d8f75 Stepper Library supports 5 phase, 5 wire motors. 2015-06-05 16:18:46 +02:00
ekozlenko
caf000b005 Fixed unsigned var and version note 2015-06-05 16:18:46 +02:00
ekozlenko
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
Federico Fissore
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
Federico Fissore
9b8a26e324 Copy: Recent -> Open Recent 2015-06-05 13:28:46 +02:00
Federico Fissore
99bc0a0ec0 Merge pull request #3294 from agdl/TemperatureWebPanelFix
Added literal float to improve precision
2015-06-05 12:45:59 +02:00
Arturo Guadalupi
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
Federico Fissore
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
David A. Mellis
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
Avamander
cdae13c3cc Update install.sh 2015-06-04 20:18:55 +03:00
Federico Fissore
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
Federico Fissore
5875909683 Folder/zip file is checked to be an actual library before importing it. Fixes #2861 2015-06-04 16:28:07 +02:00
Federico Fissore
25b886dee3 Update revisions.txt 2015-06-04 14:29:05 +02:00
Federico Fissore
0ae4f0bf42 Merge pull request #3279 from ffissore/system-proxy-settings
Use system proxy settings
2015-06-04 13:35:14 +02:00
Federico Fissore
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
Federico Fissore
e9d66015a4 Windows: reg query uses different separators on xp, fooling parser. Fixed 2015-06-04 11:44:56 +02:00
Federico Fissore
3c982759c2 Code inspection: cleaned up processing.app.Editor 2015-06-04 11:02:59 +02:00
Federico Fissore
e33bd78a1d Recent sketches list updated even when a new sketch is saved. Fixes #3285 2015-06-04 10:41:13 +02:00
Federico Fissore
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
Federico Fissore
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
Cristian Maglie
7f478b20ac Merge pull request #3273 from Fede85/master
add Arduino Gemma Bootloader source files
2015-06-01 21:09:28 +02:00
Fede85
4f957da22a add Arduino Gemma Bootloader source files 2015-06-01 20:00:54 +02:00
Federico Fissore
e08211309f Revert "MacOSX: fullscreen support. Fixes #3256"
This reverts commit e375571945.
2015-06-01 17:44:33 +02:00
Federico Fissore
b0cb2c4e52 Added File > Recent menu: shows last 5 opened sketches, sorted in reverse chronological order 2015-06-01 17:08:10 +02:00
Federico Fissore
e375571945 MacOSX: fullscreen support. Fixes #3256 2015-06-01 15:37:38 +02:00
Federico Fissore
b77f5f731d If opening serial monitor causes an error, set it closed. Fixes #3268 2015-06-01 15:27:14 +02:00
Federico Fissore
a859cfb9f9 Middle mouse button pastes text only on linux: on other OSs it does nothing. Fixes #3266 2015-06-01 14:25:13 +02:00
Martino Facchin
8cfaf3c184 Merge pull request #3269 from facchinm/PR847
Add a Stream::find(char) method
2015-06-01 14:09:08 +02:00
Martino Facchin
ed1b8eb486 Add a Stream::find(char) method 2015-06-01 14:06:32 +00:00
Federico Fissore
e55d4145d0 SerialMonitor suspend/resume: dealing with boards that change serial port
between uploads. Fixes #3255
Fixed a missing status management, leading IDE to believe Serial Monitor
was opened while it was not. See #3268
2015-06-01 12:14:30 +02:00
Federico Fissore
740a14e638 UploadFactory: removed duplication 2015-06-01 12:08:43 +02:00
Federico Fissore
0b8e7922bf GUIUserNotifier uses active editor as parent component 2015-06-01 12:08:43 +02:00
Federico Fissore
17837197d1 Merge pull request #3267 from agdl/KnockLockFix
Cleared numberOfKnocks variable
2015-06-01 10:39:21 +02:00
Arturo Guadalupi
0d4f208f1a Cleared numberOfKnocks variable
Fixed according to #2294
2015-06-01 10:33:26 +02:00
Federico Fissore
7e0dd9b974 Merge pull request #3265 from agdl/StringConstructorFloatDouble
Added float example to StringConstructor
2015-06-01 09:52:04 +02:00
Arturo Guadalupi
c28fb7acd4 Added float example to StringConstructor
This example has been added according to #3264
2015-06-01 09:50:51 +02:00
Federico Fissore
33f13d25f8 Editor: highlights cleared also on upload. Fixes #3253 2015-06-01 09:28:30 +02:00
Federico Fissore
0956f5da25 Merge pull request #3239 from ffissore/macosx-select-line
MacOSX: CMD+SHIFT-LEFT/RIGHT selects the entire line. Fixes #3238
2015-06-01 09:02:29 +02:00
Federico Fissore
24c9f8c271 MacOSX: CMD+SHIFT+UP/DOWN select text from cursor to the beginning or end of the
doc
2015-06-01 08:56:45 +02:00
Federico Fissore
dcbc8e2137 MacOSX: CMD+SHIFT-LEFT/RIGHT selects the entire line. Fixes #3238 2015-06-01 08:56:45 +02:00
Cristian Maglie
074d910857 Fixed unused argument warning 2015-05-30 15:19:44 +02:00
Cristian Maglie
2cbdc121e9 Fixed unused variables warnings and indentation 2015-05-29 20:02:50 +02:00
Cristian Maglie
94a182e841 update revisions log 2015-05-29 18:12:44 +02:00
chromhelm
cd9d30a8fe Saving some bytes in HardwareSerial::write 2015-05-29 18:12:24 +02:00
Federico Fissore
f735e10908 Update revisions.txt 2015-05-29 16:22:21 +02:00
Martino Facchin
b590d4898f update revisions.txt 2015-05-29 15:55:50 +02:00
Martino Facchin
2af29619d8 Merge branch 'master' into ide-1.5.x 2015-05-29 15:37:45 +02:00