Skip to content

New shots for Solo#416

Merged
m4gr3d merged 6 commits into
dronekit:developfrom
phmagic:new-shots
Jul 26, 2016
Merged

New shots for Solo#416
m4gr3d merged 6 commits into
dronekit:developfrom
phmagic:new-shots

Conversation

@phmagic

@phmagic phmagic commented Jul 24, 2016

Copy link
Copy Markdown
Contributor

Zipline Message
Pano Messages
Rewind Options Message
Return to Me Message

}

SoloPanoOptions(ByteBuffer buffer) {
this(buffer.get(), buffer.get() == PANO_ON_VALUE, (short) buffer.getShort(), buffer.getFloat(), buffer.getFloat());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phmagic the first parameter is an int, so buffer.getInt() should be used instead.
buffer.getShort() doesn't need a cast as well.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phmagic nevermind, I see below you're storing the panoPreference as a byte.

@m4gr3d

m4gr3d commented Jul 24, 2016

Copy link
Copy Markdown
Member

@phmagic In addition, can you add a javadoc on top of the new TLVPacket classes to explain what they do, and how they are used.

phmagic added 2 commits July 25, 2016 09:56
- Pano and Rewind options: restrict input of preference parameters
- SoloZiplineLock - removed necessary code
- build.gradle - revert back to 1.5.0
- Made PanoOptions a subclass of TLVPacket since it does not use anything from the previous parent (SoloShotOptions)
- changed PanoStatus variables to byte instead of int
@m4gr3d

m4gr3d commented Jul 26, 2016

Copy link
Copy Markdown
Member

@phmagic looks good to go. I'll merge this pr in, feel free to open another one with the updated javadocs.

@m4gr3d
m4gr3d merged commit 5334850 into dronekit:develop Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants