EasternEdgeRobotics / Software_2017

The control software for 2017
MIT License
3 stars 0 forks source link

Update pilot panel settings and reduce still image resolution #311

Closed cal-pratt closed 7 years ago

cal-pratt commented 7 years ago

Changes made on June 4th to get the ROV up and running with the Panel. Note: The master branch is stable again after this change

There was a bug in the profile code where I had short clicks performing the profile save, and had long clicks performing the profile switch. I was also not filtering for just release clicks. This has been fixed. Further, I added some flashing when the profile gets saved blink blink blink

All the sliders are upside down compared to last year, so I added a method to flip the power from (0, 1) value range to (1, 0).

I also removed the 1080p resolution stream as the base for the picameras. I thought that the resize block in the H264 pipeline performed resizing through sampling, but it looks like it just truncates the edges of the image. This reduces our FOV by a lot, so it's not acceptable. The stills captured by the python script are still better quality than the H264 frames captured by the stream decoder, so it is not a complete loss. Perhaps there is a high quality 4:3 resolution that could be truncated without losing much FOV on the horizontal axis? image