Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART_17-18
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
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
bbartels
MicroCART_17-18
Commits
fb3f383b
Commit
fb3f383b
authored
8 years ago
by
dawehr
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git.ece.iastate.edu/danc/MicroCART_17-18
parents
2d5fd32d
334765b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
groundStation/src/backend/commands.c
+110
-1
110 additions, 1 deletion
groundStation/src/backend/commands.c
with
110 additions
and
1 deletion
groundStation/src/backend/commands.c
+
110
−
1
View file @
fb3f383b
...
...
@@ -86,6 +86,9 @@ command_cb cb_setheightd __attribute__((weak, alias("cb_default")));
command_cb
cb_setheight
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_setlat
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_setlong
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_setyaw
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_setpitch
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_setroll
__attribute__
((
weak
,
alias
(
"cb_default"
)));
/* Default callbacks for getters */
command_cb
cb_getyawp
__attribute__
((
weak
,
alias
(
"cb_default"
)));
...
...
@@ -118,6 +121,9 @@ command_cb cb_getheightd __attribute__((weak, alias("cb_default")));
command_cb
cb_getheight
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getlat
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getlong
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getyaw
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getpitch
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_getroll
__attribute__
((
weak
,
alias
(
"cb_default"
)));
/* Default callbacks for responses */
command_cb
cb_respyawp
__attribute__
((
weak
,
alias
(
"cb_default"
)));
...
...
@@ -150,6 +156,9 @@ command_cb cb_respheightd __attribute__((weak, alias("cb_default")));
command_cb
cb_respheight
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_resplat
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_resplong
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_respyaw
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_resppitch
__attribute__
((
weak
,
alias
(
"cb_default"
)));
command_cb
cb_resproll
__attribute__
((
weak
,
alias
(
"cb_default"
)));
/* Command structure */
struct
MessageType
MessageTypes
[
MAX_TYPE
]
=
...
...
@@ -533,6 +542,39 @@ struct MessageType MessageTypes[MAX_TYPE] =
floatType
,
// Function pointer
&
cb_setlong
},
// yaw setpoint subtype
{
// ID
0x1E
,
// Command text
"setyaw"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_setyaw
},
// pitch setpoint subtype
{
// ID
0x1F
,
// Command text
"setpitch"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_setpitch
},
// roll setpoint subtype
{
// ID
0x20
,
// Command text
"setroll"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_setroll
}
}
},
...
...
@@ -873,7 +915,41 @@ struct MessageType MessageTypes[MAX_TYPE] =
floatType
,
// Function pointer
&
cb_getlong
},
// yaw getpoint subtype
{
// ID
0x1E
,
// Command text
"getyaw"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_getyaw
},
// pitch getpoint subtype
{
// ID
0x1F
,
// Command text
"getpitch"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_getpitch
},
// roll getpoint subtype
{
// ID
0x20
,
// Command text
"getroll"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_getroll
}
}
},
...
...
@@ -1213,7 +1289,40 @@ struct MessageType MessageTypes[MAX_TYPE] =
floatType
,
// Function pointer
&
cb_resplong
}
},
// yaw resppoint subtype
{
// ID
0x1E
,
// Command text
"respyaw"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_respyaw
},
// pitch resppoint subtype
{
// ID
0x1F
,
// Command text
"resppitch"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_resppitch
},
// roll resppoint subtype
{
// ID
0x20
,
// Command text
"resproll"
,
// Type of the command data
floatType
,
// Function pointer
&
cb_resproll
}
}
},
// UPDATE
...
...
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