Commit Graph

2140 Commits

Author SHA1 Message Date
iabdalkader
85f06771d3 Include legacy header 2018-03-12 16:42:50 +02:00
iabdalkader
6a303f3d94 Update H7 legacy header. 2018-03-12 16:42:33 +02:00
iabdalkader
0d59d7584e Disable SRAM1/2/3 in bootloader.
* Not actually used
2018-03-12 16:39:19 +02:00
iabdalkader
793c451437 Add Makefile targets using dfu-util. 2018-03-12 16:38:22 +02:00
Ibrahim Abd Elkader
0a5146e393
Merge pull request #322 from kwagyeman/master
Upgrade Drawing Features
2018-03-12 16:38:24 +02:00
Kwabena W. Agyeman
0d63aa52df Fix minor numerical issues.
Couldn't sleep. Needed to make sure this got fixed.

On a side note. We should use a better font. It doesn't really scale
well. Not going to fix now.
2018-03-12 08:51:56 -04:00
Kwabena W. Agyeman
fc74e70c32 Upgrade Drawing Features
Heavily upgraded the drawing features onboard the OpenMV Cam. We now
have all the basic drawing methods folks expect along with all the
parameters you need. Finally! You can make big text fonts.

* Added line thickness support
* Added shape fills
* Added text scaling
* Added draw arrow.
2018-03-12 01:14:03 -04:00
iabdalkader
f27f94b76d Define new memory regions. 2018-03-12 02:40:17 +02:00
iabdalkader
6880482afd Enable D2 SRAM1/2/3 clocks. 2018-03-12 01:36:45 +02:00
iabdalkader
50d27dacee Enable USB clock during sleep. 2018-03-12 01:35:50 +02:00
iabdalkader
6339815ae3 Comment SDMMC definition. 2018-03-10 22:51:33 +02:00
iabdalkader
99dc3365b6 Update H7 CMSIS headers. 2018-03-10 20:17:36 +02:00
iabdalkader
453b41a6ec Update to latest MP. 2018-03-10 20:14:49 +02:00
iabdalkader
2f9da92e12 Fix H7 HSE_VALUE. 2018-03-10 18:58:14 +02:00
iabdalkader
4af7bb4b57 Update H7 ST HAL. 2018-03-10 17:30:03 +02:00
iabdalkader
93ba0a51bb Update to MP 1.9.3 2018-03-09 20:22:29 +02:00
iabdalkader
92b617877c Move USB headers to usbdev to avoid including MP USB headers. 2018-03-09 20:21:18 +02:00
iabdalkader
68e761d55a Fix typo in comment. 2018-03-05 19:18:45 +02:00
Ibrahim Abd Elkader
411f63ebca
Merge pull request #321 from kwagyeman/master
Argument Parsing Done Correctly
2018-03-05 16:04:44 +02:00
Kwabena W. Agyeman
e0e112468e Argument Parsing Done Correctly
All of our argument parsing code has now been updated to handle
positional as well as keyword arguments in our python libraries.

Basically, python allows you to pass some number of positional arguments
to functions/methods followed by keyword arguments (you cannot have more
positional arguments after keyword arguments). Previously, our code
would only look for keyword arguments. Now, it works better and will
grab as many positional arguments as it can followed by processing
keyword arguments. Note: If the case of a positional argument value for
a parameter being passed followed by a keyword for that same parameter
the keyword value is taken (since it comes aftward).

Because arguments were passed in keyword form before this update has no
affect on current code. However, moving forward, argument positions are
now locked and cannot be moved around.
2018-03-05 00:49:36 -05:00
iabdalkader
2feed8b291 Add CNN example script. 2018-03-05 03:25:23 +02:00
iabdalkader
75d89f7172 Add CMSIS CNN. 2018-03-05 03:10:10 +02:00
iabdalkader
28cc88845c Fix system init. 2018-03-04 17:18:14 +02:00
iabdalkader
11040db094 Update imlib_image_mean to handle RGB images. 2018-03-04 03:29:11 +02:00
iabdalkader
789496e13a Fix OMV2 imlib_config.h 2018-03-04 01:31:06 +02:00
iabdalkader
c0efb0884a Revert c1e5daf6fd.
* FPU_USED is already defined.
2018-03-04 01:08:17 +02:00
iabdalkader
c1e5daf6fd Add FPU_USED to CFLAGS. 2018-03-04 01:07:19 +02:00
iabdalkader
1c91b1dcb1 Update SystemInit. 2018-03-04 01:06:31 +02:00
iabdalkader
bc3807ed30 Fix py_cpufreq. 2018-03-03 22:58:12 +02:00
iabdalkader
de1c6427a6 Wait for PWR_FLAG_VOSRDY 2018-03-02 17:38:35 +02:00
iabdalkader
659abe0225 Clean up system clockconfig function. 2018-03-02 17:37:03 +02:00
iabdalkader
e028215be5 Remove unused functions in system.c 2018-03-02 17:32:00 +02:00
Ibrahim Abd Elkader
9c3e9109ec
Merge pull request #318 from kwagyeman/mathop
Cleanup Math Operations
2018-02-26 18:35:55 +02:00
Kwabena W. Agyeman
397abe4746 Cleanup Math Operations
Add binary image support to the math operations and updated them to
support masks. Replace now also support mirroring operations. Finally,
adding missing basic math ops like add/sub/mul/div. The operations are
designed to work as image blending operations so they take care of
scaling their output accordingly.
2018-02-25 22:03:31 -05:00
Ibrahim Abd Elkader
4a0e1dda82
Merge pull request #317 from kwagyeman/master
Overhaul Binary Functions
2018-02-25 15:39:36 +02:00
Kwabena W. Agyeman
fb3d0776f0 Overhaul Binary Functions
Binary() can noew zero things so you can remove bright lights. All the
line ops (and/or/xor/etc) accept masks. Erode and dilate now accept
masks. And finally, you can now pass arguments versus keywords for folks
who don't read the documentation. Also, the binary image type is now
supported for these methods.

I'm putting in all this work because I saw the need for it when I was
doing shadow removal.

Note: Some effort needs to be put into optimizing the py_image.c code
soon. This is on the todo list before the next release.
2018-02-25 00:15:02 -05:00
Ibrahim Abd Elkader
b8298c43cd
Merge pull request #316 from kwagyeman/master
Add color thresholding support to get_histogram/stats.
2018-02-23 03:54:33 +02:00
Kwabena W. Agyeman
646425b2a6 Add color thresholding support to get_histogram/stats.
You can now pass a color threshold list to get histogram and get stats
(along with an invert arg) to control what gets put into the histogram.
2018-02-21 01:27:13 -05:00
iabdalkader
5d3ebda192 Remove board design files (moved to openmv-boards). 2018-02-18 01:17:05 +02:00
Ibrahim Abd Elkader
b304801620
Merge pull request #314 from kwagyeman/motor_shield
Add motor shield files.
2018-02-18 00:38:33 +02:00
Kwabena W. Agyeman
7b551f6f56 Add motor shield files 2018-02-17 14:32:16 -08:00
iabdalkader
5027e0162e Protect VCP buffer pointer with atomic section.
* Fix issue #313
2018-02-17 00:22:21 +02:00
iabdalkader
9b8519c6f1 Update firmware. 2018-02-15 23:48:39 +02:00
iabdalkader
7c6ee56862 Move wifi driver to separate files.
* This will enable using wifi from C code.
2018-02-12 23:53:43 +02:00
iabdalkader
eaaf391ec8 Enable threading. 2018-02-12 23:53:00 +02:00
Ibrahim Abd Elkader
43a17f2890
Merge pull request #312 from kwagyeman/wifi_dbg
Add wifi_dbg stub.
2018-02-12 22:21:42 +02:00
iabdalkader
ff75b760f7 Update MP docs. 2018-02-12 00:41:26 +02:00
Kwabena W. Agyeman
11983a0228 Add wifi_dbg stub.
All the notes about how to implement wifi programming are in the code.
Steps:

1. Get wifi_apply_settings() working first and make sure you can turn
the wifi shield on in the right mode. Then add the necessary hooks into
the network code to make it such that previous user wifi code still
works. Also, make sure to handle start and shutdown gracefully.

Basically, get all the lifecycle code working first before moving to the
next step so notning gets in a weird state and bugs creep in...

2. Get the beacon method working. Once this works OpenMV IDE should see
the camera when you hit the connect button.

3. Do the code to turn off the regular usbdbg interface and swtich to
having the data come from wifi_dbg. This isn't a lot of code... but,
will be tricky since you no longer will have USB frames to work with.
All bytes are just going to come randomly and in bursts so you have to
handle the serial stream yourself... (Kwabena can help writing a
statemachine for dealing with this type of stuff if you want. I do it
all the time).
2018-02-08 01:49:29 -05:00
iabdalkader
7ef6bf0e5c Disable unused functions in imlib_config. 2018-02-06 02:26:09 +02:00
iabdalkader
333e5417b1 Disable qrcodes if not used. 2018-02-06 02:17:46 +02:00