Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Distributed Autonomous Networked Control Lab
MicroCART
Commits
9d5fcefa
Commit
9d5fcefa
authored
7 years ago
by
dawehr
Browse files
Options
Downloads
Patches
Plain Diff
Removed "packed" from optical flow integral frame
parent
49c52d13
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quad/xsdk_workspace/real_quad/src/hw_impl_zybo_optical_flow.c
+2
-1
2 additions, 1 deletion
.../xsdk_workspace/real_quad/src/hw_impl_zybo_optical_flow.c
with
2 additions
and
1 deletion
quad/xsdk_workspace/real_quad/src/hw_impl_zybo_optical_flow.c
+
2
−
1
View file @
9d5fcefa
...
...
@@ -17,6 +17,7 @@ int zybo_optical_flow_read(struct OpticalFlowDriver *self, px4flow_t *of) {
struct
I2CDriver
*
i2c
=
self
->
i2c
;
int
error
=
0
;
// Note: Despite documentation, do not mark this as a "packed" struct. The actual code does not pack it.
struct
i2c_integral_frame
{
uint16_t
frame_count_since_last_readout
;
//number of flow measurements since last I2C readout [#frames]
...
...
@@ -30,7 +31,7 @@ int zybo_optical_flow_read(struct OpticalFlowDriver *self, px4flow_t *of) {
int16_t
ground_distance
;
// Ground distance in meters*1000 [meters*1000]
int16_t
gyro_temperature
;
// Temperature * 100 in centi-degrees Celsius [degcelsius*100]
uint8_t
quality
;
// averaged quality of accumulated flow values [0:bad quality;255: max quality]
}
__attribute__
((
packed
))
i2c_integral_frame
;
}
i2c_integral_frame
;
u8
buf
[
sizeof
(
i2c_integral_frame
)];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment