Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New shots for Solo #416

Merged
merged 6 commits into from
Jul 26, 2016
Merged

New shots for Solo #416

merged 6 commits into from
Jul 26, 2016

Conversation

phmagic
Copy link
Contributor

@phmagic phmagic commented Jul 24, 2016

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
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
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
Copy link
Member

m4gr3d commented Jul 24, 2016

@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
Copy link
Member

m4gr3d commented Jul 26, 2016

@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