Commit Graph

125 Commits

Author SHA1 Message Date
iabdalkader
60dc3f7e91 Remove ToF module. 2016-10-10 16:53:02 +02:00
iabdalkader
b665c65ed6 Rename mdefs.h to common.h 2016-08-30 22:37:04 +02:00
iabdalkader
4b07286284 Update colorbars test.
* Invert colorbars for OV7725.
* Increase colorbars thresholds.
2016-08-23 22:37:47 +02:00
iabdalkader
1cbcb7e434 Add M7 support 2016-08-12 22:43:50 +02:00
iabdalkader
0363fa8758 Add ToF module. 2016-07-27 15:21:33 +03:00
iabdalkader
39f439cda5 Fix the base priority when doing a soft-reset 2016-05-16 14:26:48 +02:00
iabdalkader
ba73787c8a Use MicroPython's SD Card Module. 2016-05-11 18:46:38 +02:00
iabdalkader
9a5992c03e Update code for MP v1.8 2016-05-09 21:46:29 +02:00
iabdalkader
c7c3ddce63 Add DAC init in main.c
* Fix issue #121
2016-05-01 15:50:10 +02:00
iabdalkader
8cd6fbf301 Replace pyboard and MP string descriptors. 2016-04-27 18:17:42 +02:00
iabdalkader
9ed107ccee Re-enable IRQs in main.c 2016-04-25 18:18:03 +02:00
iabdalkader
ef772db6c4 Up MP branch 2016-04-20 22:30:43 +02:00
Kwabena W. Agyeman
8a2852b706 Fixed file buffer bug.
This wasn't getting reinited breaking the system.
2016-04-14 23:56:54 -04:00
iabdalkader
b92f146323 Add initial WINC1500 WiFi module driver.
* Note: partial implemented, based on CC3000 module (only scan, connect, ifconfig work)
2016-03-26 01:52:29 +02:00
Kwabena W. Agyeman
88907c438c Redid MLX Code
First, a few things:

The MLX 16x4 sensor has just too low of a resolution for mass appeal for
the price. The product is not going to sell very well. We need to look
into supporting sensors with a better res. Like the FLIR 1. The MLX
module was renamed to the "flir" module with this idea in mind.

The flir code now takes care of doing scaling and blending itself. I did
this to get rid of the user having to scale the image themselves and
blend themselves. Its too easy to run out of memory given our current
ultra small heap. In general, anything that requires multiple images in
RAM has got to go. When we do another OpenMV Cam with external RAM in
the MB range then maybe such functions will be safe. But, right now they
are definately not.

Anyway, moving on, I fixed a few bugs with the MLX math code. But, for
the most part was correct. I also added reconmended polling code for
brownouts as required by the datasheet.

Last, I designed this code like the LCD code to support a type value
when inited. This will allow the system to user a different sensor in the
future without any API changes to the user.

I will add test scripts for this next. Basic usage follows:

import flir
flir.init()
flir.display_ir(sensor.snapshot())

And that's it. Super easy. If the user wants the raw temp values they
can use flir.read_ir() to get the ta and to values. The display function
has a hidden alpha and scale argument for controling blending and the
min/max scaling.

The previous way we worked out scaling kinda sucked... it was a good
shot, but, controllable min and maxes that autoscale by default just
work better. If the user knows the temp range then they can just set the
min and max.'

Anyway, longest commit ever done.
2016-03-24 18:04:05 -04:00
Kwabena W. Agyeman
94910c8ed7 Move LCD code into module. It's now ultra fast, safe and friendly. I
tested everything too and added an example script (very simple).
2016-03-17 20:01:03 -04:00
iabdalkader
ebf13197a9 Disable USB IRQ before stopping script.
* This ensures that FS IRQ will never run during a soft-reset which
causes issues when using SD card.
2016-03-11 04:14:19 +02:00
iabdalkader
31697a163b Re-init storage after soft-reset. 2016-03-11 04:13:23 +02:00
iabdalkader
6cb7288def Add NORETURN to __fatal_error 2016-03-06 19:03:00 +02:00
iabdalkader
acc35704d8 Disable IRQs when doing a soft-reset. 2016-03-06 02:51:34 +02:00
iabdalkader
2ab317063d Re-exec REPL if there's no script to execute. 2016-03-06 02:39:58 +02:00
iabdalkader
3e5bfb27cc Move FatFS file buffer to main SRAM.
* Allows DMA transfers of file data.
2016-03-02 00:19:29 +02:00
iabdalkader
db667c061f Rename fb_stack to fb_alloc and call init0 in main 2016-02-17 05:24:17 +02:00
iabdalkader
70d3ffcb50 Enable selftests 2016-02-06 21:56:01 +02:00
iabdalkader
c0a9e5279f Use soft_reset in main.
* This fixes the issue with script upload failing when gc is locked,
  and resets peripherals to their initial state.
2016-02-06 15:32:12 +02:00
iabdalkader
8a28cba8c7 Fix servo timers
* call servo_init in main
* Fix servo timer, number of channels and pin mappings.
2015-09-24 02:04:51 +02:00
iabdalkader
940f3a0d7d Disabled self tests for OMV1
* RGB QVGA doesn't fit in OMV1's RAM, fix the script or write another one.
2015-08-18 23:54:49 +02:00
iabdalkader
b33f7b4c29 Add functions to disable/enable IDE interrupts
* This constrains IDE interrupts avoiding the need for critical sections.
2015-08-17 19:48:18 +02:00
iabdalkader
801f74c2da Remove global misc functions
* Remove redundant functions
2015-08-13 23:18:59 +02:00
iabdalkader
7d949694ef Fix main script FS template 2015-08-13 23:15:57 +02:00
iabdalkader
533f0e3e8f Re-init MP state and use pyexec_file/str
* Use pyexec_file/str with re-raise flag
* re-init MP state before executing scripts
2015-08-13 00:22:55 +02:00
iabdalkader
cbbd93b0ca Add the selftest script in main 2015-08-09 22:06:57 +02:00
iabdalkader
54288c5351 Add image module
* Move Image class and misc functions to image module
2015-08-09 13:00:06 +02:00
iabdalkader
0dffedda92 Fix typo 2015-08-08 00:33:26 +02:00
iabdalkader
fa12a1a704 Log fatal errors to file 2015-08-08 00:31:59 +02:00
iabdalkader
4376e87609 Revert sensor_init and check error after USB init 2015-08-08 00:30:39 +02:00
iabdalkader
aaeaff476d Delay sensor_init
* Call sensor_init after initializing USB mass storage to log errors.
2015-08-07 23:16:30 +02:00
iabdalkader
4c9982b7e9 Rename usbdbg clear script to clear flags 2015-08-06 12:20:17 +02:00
iabdalkader
e446e03f9d Remove check for unused pyexec_mode_kind 2015-07-30 17:37:31 +02:00
iabdalkader
b42da07430 Remove reset_mode 2015-07-30 17:33:12 +02:00
iabdalkader
d43eda7e51 Move parse and compile inside exception handler
* This allows syntax errors to be caught and printed
2015-07-29 23:04:41 +02:00
iabdalkader
f34b07f015 Update print function 2015-07-18 07:05:13 +02:00
iabdalkader
f7d71cd594 More parse and compile script to main thread 2015-07-13 07:51:48 +02:00
iabdalkader
fb7d17a127 Remove xalloc_init 2015-07-12 00:38:26 +02:00
iabdalkader
e273e43961 Add stages kw arg to load cascade function 2015-07-10 02:57:30 +02:00
iabdalkader
09e77b5da8 Fix volume labels and root dir 2015-05-04 11:51:46 +03:00
iabdalkader
1879988bcb Set correct stack limit for MP 2015-05-03 10:58:58 +03:00
iabdalkader
ace7b976fb Remove init_modules
* init modules is not needed anymore.
2015-05-03 10:22:07 +03:00
iabdalkader
1c66afe971 Fix mlx undefined reference 2015-05-01 04:58:16 +03:00
iabdalkader
338320ad3c Update MP 2015-04-29 04:13:07 +03:00
iabdalkader
97ea356e9d Use larger stack limit 2014-10-02 01:38:50 +02:00
iabdalkader
ce3d435137 Add load_lbp 2014-09-24 22:25:14 +02:00
iabdalkader
65cd8a133a Update license
* Switch to MIT
* Add license notice to source files
2014-09-20 05:09:52 +02:00
iabdalkader
a25650562c Cleanup main 2014-09-18 19:23:10 +02:00
iabdalkader
903f756a7c Misc Fixes, add load/save descriptor 2014-09-09 15:07:22 +02:00
iabdalkader
2f5b82ec77 Update UART code 2014-09-05 18:09:07 +02:00
iabdalkader
4a39ffc65b Add module names for debugging 2014-08-31 15:12:11 +02:00
iabdalkader
19121dec9f Fix exported functions 2014-08-30 18:35:37 +02:00
iabdalkader
f500fe28d1 Remove mp_sys_exit 2014-08-29 19:38:04 +02:00
iabdalkader
0aeab28640 Update MP Modules
* Update all modules for new API
* Move modules to built-in
2014-08-26 20:32:43 +02:00
iabdalkader
82efa9042d Throw Exception When malloc Fails 2014-08-25 20:55:52 +02:00
iabdalkader
7038cb25c6 Export gc_collect and random 2014-08-25 14:37:17 +02:00
iabdalkader
5722436a63 Add MLX90620 driver 2014-08-18 10:26:32 +02:00
iabdalkader
12d062d1bc Enable GPIO and SPI
* Fix GPIO/SPI code
* Use buffers in SPI read/write
* Add pin qstrs OMV2
* remove old led files
* Update LCD user examples
2014-08-10 19:39:19 +02:00
iabdalkader
6389cce8b3 Export select 2014-07-14 04:17:11 +02:00
iabdalkader
2d3abcf2f4 Add wlan and socket python modules 2014-07-05 03:41:43 +02:00
iabdalkader
73f0d348bc More fixes to SD code 2014-06-30 03:45:03 +02:00
iabdalkader
92563b6190 Add SDCARD SPI driver 2014-06-28 01:26:32 +02:00
iabdalkader
0191702058 Export open 2014-06-27 23:46:13 +02:00
iabdalkader
1c7f8d7bdf Move GPIO configuration to MSP 2014-06-27 22:21:59 +02:00
iabdalkader
9fb77ee5ac Enable HaarCascade and Image 2014-06-19 23:20:32 +02:00
iabdalkader
c1dab26fca Fix more sources to use HAL 2014-06-18 21:20:22 +02:00
iabdalkader
1e4b6fa8fd Update sources to new HAL 2014-06-18 17:28:46 +02:00
iabdalkader
b00d9c2e97 Update sources for new STHAL/MP 2014-06-15 21:15:13 +02:00
iabdalkader
4df970b418 Move files to OMV 2014-06-14 12:28:45 +02:00