Commit Graph

1888 Commits

Author SHA1 Message Date
iabdalkader
15fc16c916 Update face tracking script. 2017-02-28 17:45:48 +02:00
iabdalkader
7616e487f9 Handle CTRL+D/C/A just like MP boards. 2017-02-23 15:20:14 +02:00
iabdalkader
f7c49cc01d Add CAN init0/deinit in main.c 2017-02-23 15:16:04 +02:00
iabdalkader
2934e88146 Enable CAN2 for OMV2 and OMV3 2017-02-23 15:04:04 +02:00
iabdalkader
f0a389f2cc Enable extra MP modules. 2017-02-23 02:15:04 +02:00
Ibrahim Abd Elkader
07c11f90fb Merge pull request #192 from kwagyeman/pixy_fixies
Add callbacks back in for emulating pixy.
2017-02-15 23:41:22 +02:00
Kwabena W. Agyeman
1b3f444351 Add callbacks back in for emulating pixy. 2017-02-15 13:18:11 -05:00
Ibrahim Abd Elkader
14fadbc175 Merge pull request #190 from kwagyeman/apriltag_fixes
AprilTags Fixes
2017-02-15 18:33:51 +02:00
Kwabena W. Agyeman
cd07c0d5fa AprilTags Fixes
* Made all memory allocations during the exhaustive time safe.
* Added 3D pose output from the AprilTags code.
2017-02-14 18:36:52 -05:00
Ibrahim Abd Elkader
80dc85385e Merge pull request #189 from kwagyeman/qrcode_fixes
QR Code Bug Fixes
2017-02-11 06:39:45 +02:00
Kwabena W. Agyeman
b22aadc21f QR Code Bug Fixes
Fixed typo in qrcode script. Moved scripts to new folder. Fixed roi
offset for qrcodes. Use fast functions in qrcode library.
2017-02-10 15:14:29 -05:00
Ibrahim Abd Elkader
7b82c52a12 Merge pull request #188 from kwagyeman/apriltags
April Tag Release Fixes
2017-02-10 20:48:42 +02:00
Kwabena W. Agyeman
71e795812f April Tag Release Fixes
Everything works. Running out of memory is fixed and the rotation value
is valid now. For 320x240 operation on the STM32H7 we're going to need
on the order of 1 MB in the entire frame buffer. The code is designed to
handle us getting this amount of memory without any new changes for
320x240 support.
2017-02-10 13:42:35 -05:00
Ibrahim Abd Elkader
f15cb6818e Merge pull request #187 from kwagyeman/apriltags
AprilTags Support
2017-02-10 00:54:28 +02:00
Kwabena W. Agyeman
443ba3bff8 AprilTags Support
Works super good.
2017-02-09 17:37:18 -05:00
Ibrahim Abd Elkader
a5fef724e6 Merge pull request #186 from kwagyeman/apriltags
AprilTags Main
2017-02-10 00:27:25 +02:00
Kwabena W. Agyeman
55716a632a AprilTags Main
This file includes all of the relevant header/source files from the
april tag library merged into one big file. Additionally, it also
includes heap/quicksort code. I've done the work of going through
the april tag library line by line and fixing it to use fb_alloc,
floats, and our fast math functions.

Anyway, I'm sending this massive file by itself first since it's so
big. Note that we migh in the future want to pull things out of this
file for our own use later if we need linear algebra support.
2017-02-09 17:04:08 -05:00
Ibrahim Abd Elkader
b596dec291 Merge pull request #182 from kwagyeman/add_flag
Add flag for SWD programmer.
2017-01-31 00:30:38 +02:00
Ibrahim Abd Elkader
642052073b Merge pull request #181 from kwagyeman/fix_led
Fixed bootloader LED
2017-01-30 22:45:56 +02:00
Kwabena W. Agyeman
c4b4a86100 Add flag for SWD programmer.
It can now check if the self-test passed.
2017-01-29 19:54:45 -05:00
Kwabena W. Agyeman
3f879ec1b3 Fixed bootloader LED 2017-01-29 19:52:24 -05:00
iabdalkader
0be2676bc1 Bump firmware version. 2017-01-21 23:39:32 +02:00
iabdalkader
f0a4dbe2af Update change log. 2017-01-21 23:37:44 +02:00
iabdalkader
8499b24e15 Update firmware images. 2017-01-21 23:29:09 +02:00
iabdalkader
3e581156da Fix LED pinout for OMV3. 2017-01-21 23:20:40 +02:00
iabdalkader
1cba92d757 Update docs. 2017-01-21 23:07:43 +02:00
iabdalkader
387826a4d4 Update keypoints editor.
* Parse descriptor type
* Allow octaves to be hidden.
2017-01-21 23:04:12 +02:00
Ibrahim Abd Elkader
5302b9004b Merge pull request #180 from kwagyeman/fb_alloc_fix_2
Fixed fb_alloc() with mark for recently re-worked code.
2017-01-19 08:20:57 +02:00
Kwabena W. Agyeman
02af722fe8 Fixed fb_alloc() with mark for recently re-worked code.
I also tested the firmware for about an hour to make sure there was no
stack leak.

Note that I prefer for fb_free() to still be called versus
fb_free_till_mark() doing that for you in the code.

For functions without this fix they will just free the entire fb_alloc
stack when an exception happens. For functions with this fix they will
only free up to and including the mark. Since there are no places in the
firmware where you could start building a second fb_alloc stack when one
is already in place this point is moot currently. But, if we do
something like that in the future the problem will have already been
solved.

Any new code or re-worked code should use the mark function.
2017-01-18 18:39:08 -05:00
Ibrahim Abd Elkader
553f2bfcf3 Merge pull request #179 from dhylands/fix-udev
Fix udev rules
2017-01-18 15:06:32 +02:00
Dave Hylands
5fb380e29f Fix udev rules
These changes cause modemmanager to ignore the serial port
created when plugging in the OpenMV board.

Without these changes, the modemmanager open /dev/ttyACM0 and
sends AT commnads. This delays being able to access the REPL
using a temrinal emulator and also cause a syntax error
since the AT commands aren't valid python.
2017-01-17 20:34:27 -08:00
iabdalkader
0979ee2c0f Update MP branch 2017-01-18 04:14:11 +02:00
Ibrahim Abd Elkader
ec482696d6 Merge pull request #178 from kwagyeman/tracking_scripts
Make how to use these scripts more obvious.
2017-01-16 16:37:09 +02:00
Kwabena W. Agyeman
f1ddeb1011 Make how to use these scripts more obvious.
Added a box to put the object to track in.
2017-01-15 22:26:27 -05:00
Ibrahim Abd Elkader
f7e04a450b Merge pull request #177 from kwagyeman/update_lens_corr
Speed up lens_corr.
2017-01-16 04:43:56 +02:00
Kwabena W. Agyeman
d6b49adefa Speed up lens_corr.
Speed up the algorithm by fixing the abs() issue. Do not use that
function in any of your code. It by itself cut the speed of the code
in half. I don't know what's in that function but I'm guessing it does
ABS of a float using ints or something.

I made the zoom parameter functional now too so you can use lens_corr to
zoom in on the image. Argument parsing is handled too. Finally, I
updated the only script where this is used.

Note that I'm able to get more than 10 FPS at 160x120 on the M4 and 15
FPS at 160x120 on the M7. Previous this was at about 5 FPS and 7.5 FPS
respectively.
2017-01-15 21:32:55 -05:00
Ibrahim Abd Elkader
3defeb8b7d Merge pull request #176 from kwagyeman/stats_fixes
Tested stats with examples and fixed bugs
2017-01-15 22:54:13 +02:00
Kwabena W. Agyeman
ed3f226478 Tested stats with examples and fixed bugs
The automatic grayscale and rgb565 color tracking scripts are very cool.
2017-01-15 14:59:42 -05:00
iabdalkader
e650adb53a Update keypoints.py script. 2017-01-15 18:43:14 +02:00
iabdalkader
e4c297d0e3 ORB: Use the normalized arg.
* Extract keypoints from the first scale only if normalized == True.
2017-01-15 17:40:29 +02:00
Ibrahim Abd Elkader
f1f2fb03d6 Merge pull request #175 from kwagyeman/arduino_interface
Arduino Interfacing Code
2017-01-15 03:56:59 +02:00
Kwabena W. Agyeman
870985178a Arduino Interfacing Code
Simple SPI and I2C examples.
2017-01-14 20:32:32 -05:00
Ibrahim Abd Elkader
25005eb80e Merge pull request #174 from kwagyeman/color_tracking
Update color tracking scripts.
2017-01-14 18:29:26 +02:00
Kwabena W. Agyeman
19050ee7a5 Update color tracking scripts.
Lots of scripts now. Cleaned up old code.
2017-01-14 11:17:07 -05:00
iabdalkader
be300ff6ed Update scripts that use descriptor functions. 2017-01-14 01:23:23 +02:00
iabdalkader
bba8e5a9e0 Remove match_descriptor type arg.
* Not really needed can check MP object types.
2017-01-14 01:15:24 +02:00
iabdalkader
33fa4db8ae Update firmware images. 2017-01-13 22:45:04 +02:00
iabdalkader
c9806c0588 Allow the IDE to interrupt main.py 2017-01-13 03:14:07 +02:00
Ibrahim Abd Elkader
f5ce531078 Merge pull request #173 from kwagyeman/windowing_fix
Made set_windowing simpler.
2017-01-13 00:59:55 +02:00
Kwabena W. Agyeman
0e89b655bf Made set_windowing simpilier.
Tested with updated qr code example script.
2017-01-12 17:41:40 -05:00