Skip to content
Snippets Groups Projects
Commit 9d9e1ee6 authored by jpbush's avatar jpbush
Browse files

Update Commands.c call back function names.

latitude functions are now y, and longitude functions are now x instead. 
I also recognize that setting an actual lat, lon set point in the future may be useful so I have retained those functions.
parent 5bfa1962
No related branches found
No related tags found
No related merge requests found
......@@ -74,18 +74,20 @@ command_cb cb_setrollrated __attribute__((weak, alias("cb_default")));
command_cb cb_setpitchratep __attribute__((weak, alias("cb_default")));
command_cb cb_setpitchratei __attribute__((weak, alias("cb_default")));
command_cb cb_setpitchrated __attribute__((weak, alias("cb_default")));
command_cb cb_setlatp __attribute__((weak, alias("cb_default")));
command_cb cb_setlati __attribute__((weak, alias("cb_default")));
command_cb cb_setlatd __attribute__((weak, alias("cb_default")));
command_cb cb_setlongp __attribute__((weak, alias("cb_default")));
command_cb cb_setlongi __attribute__((weak, alias("cb_default")));
command_cb cb_setlongd __attribute__((weak, alias("cb_default")));
command_cb cb_setxp __attribute__((weak, alias("cb_default")));
command_cb cb_setxi __attribute__((weak, alias("cb_default")));
command_cb cb_setxd __attribute__((weak, alias("cb_default")));
command_cb cb_setyp __attribute__((weak, alias("cb_default")));
command_cb cb_setyi __attribute__((weak, alias("cb_default")));
command_cb cb_setyd __attribute__((weak, alias("cb_default")));
command_cb cb_setheightp __attribute__((weak, alias("cb_default")));
command_cb cb_setheighti __attribute__((weak, alias("cb_default")));
command_cb cb_setheightd __attribute__((weak, alias("cb_default")));
command_cb cb_setheight __attribute__((weak, alias("cb_default")));
command_cb cb_setx __attribute__((weak, alias("cb_default")));
command_cb cb_sety __attribute__((weak, alias("cb_default")));
command_cb cb_setlon __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")));
......@@ -109,18 +111,20 @@ command_cb cb_getrollrated __attribute__((weak, alias("cb_default")));
command_cb cb_getpitchratep __attribute__((weak, alias("cb_default")));
command_cb cb_getpitchratei __attribute__((weak, alias("cb_default")));
command_cb cb_getpitchrated __attribute__((weak, alias("cb_default")));
command_cb cb_getlatp __attribute__((weak, alias("cb_default")));
command_cb cb_getlati __attribute__((weak, alias("cb_default")));
command_cb cb_getlatd __attribute__((weak, alias("cb_default")));
command_cb cb_getlongp __attribute__((weak, alias("cb_default")));
command_cb cb_getlongi __attribute__((weak, alias("cb_default")));
command_cb cb_getlongd __attribute__((weak, alias("cb_default")));
command_cb cb_getxp __attribute__((weak, alias("cb_default")));
command_cb cb_getxi __attribute__((weak, alias("cb_default")));
command_cb cb_getxd __attribute__((weak, alias("cb_default")));
command_cb cb_getyp __attribute__((weak, alias("cb_default")));
command_cb cb_getyi __attribute__((weak, alias("cb_default")));
command_cb cb_getyd __attribute__((weak, alias("cb_default")));
command_cb cb_getheightp __attribute__((weak, alias("cb_default")));
command_cb cb_getheighti __attribute__((weak, alias("cb_default")));
command_cb cb_getheightd __attribute__((weak, alias("cb_default")));
command_cb cb_getheight __attribute__((weak, alias("cb_default")));
command_cb cb_getx __attribute__((weak, alias("cb_default")));
command_cb cb_gety __attribute__((weak, alias("cb_default")));
command_cb cb_getlon __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")));
......@@ -144,18 +148,20 @@ command_cb cb_resprollrated __attribute__((weak, alias("cb_default")));
command_cb cb_resppitchratep __attribute__((weak, alias("cb_default")));
command_cb cb_resppitchratei __attribute__((weak, alias("cb_default")));
command_cb cb_resppitchrated __attribute__((weak, alias("cb_default")));
command_cb cb_resplatp __attribute__((weak, alias("cb_default")));
command_cb cb_resplati __attribute__((weak, alias("cb_default")));
command_cb cb_resplatd __attribute__((weak, alias("cb_default")));
command_cb cb_resplongp __attribute__((weak, alias("cb_default")));
command_cb cb_resplongi __attribute__((weak, alias("cb_default")));
command_cb cb_resplongd __attribute__((weak, alias("cb_default")));
command_cb cb_respxp __attribute__((weak, alias("cb_default")));
command_cb cb_respxi __attribute__((weak, alias("cb_default")));
command_cb cb_respxd __attribute__((weak, alias("cb_default")));
command_cb cb_respyp __attribute__((weak, alias("cb_default")));
command_cb cb_respyi __attribute__((weak, alias("cb_default")));
command_cb cb_respyd __attribute__((weak, alias("cb_default")));
command_cb cb_respheightp __attribute__((weak, alias("cb_default")));
command_cb cb_respheighti __attribute__((weak, alias("cb_default")));
command_cb cb_respheightd __attribute__((weak, alias("cb_default")));
command_cb cb_respheight __attribute__((weak, alias("cb_default")));
command_cb cb_respx __attribute__((weak, alias("cb_default")));
command_cb cb_respy __attribute__((weak, alias("cb_default")));
command_cb cb_resplon __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")));
......@@ -444,71 +450,71 @@ struct MessageType MessageTypes[MAX_TYPE] =
// Function pointer
&cb_setheightd
},
// lat p constant subtype
// x p constant subtype
{
// ID
0x15,
// Command text
"setlatp",
"setxp",
// Type of the command data
floatType,
// Function pointer
&cb_setlatp
&cb_setxp
},
// lat i constant subtype
// x i constant subtype
{
// ID
0x16,
// Command text
"setlati",
"setxi",
// Type of the command data
floatType,
// Function pointer
&cb_setlati
&cb_setxi
},
// lat d constant subtype
// x d constant subtype
{
// ID
0x17,
// Command text
"setlatd",
"setxd",
// Type of the command data
floatType,
// Function pointer
&cb_setlatd
&cb_setxd
},
// long p constant subtype
// y p constant subtype
{
// ID
0x18,
// Command text
"setlongp",
"setyp",
// Type of the command data
floatType,
// Function pointer
&cb_setlongp
&cb_setyp
},
// long i constant subtype
// y i constant subtype
{
// ID
0x19,
// Command text
"setlongi",
"setyi",
// Type of the command data
floatType,
// Function pointer
&cb_setlongi
&cb_setyi
},
// long d constant subtype
// y d constant subtype
{
// ID
0x1A,
// Command text
"setlongd",
"setyd",
// Type of the command data
floatType,
// Function pointer
&cb_setlongd
&cb_setyd
},
// height setpoint subtype
{
......@@ -521,27 +527,27 @@ struct MessageType MessageTypes[MAX_TYPE] =
// Function pointer
&cb_setheight
},
// lat setpoint subtype
// x setpoint subtype
{
// ID
0x1C,
// Command text
"setlat",
"setx",
// Type of the command data
floatType,
// Function pointer
&cb_setlat
&cb_setx
},
// long setpoint subtype
// y setpoint subtype
{
// ID
0x1D,
// Command text
"setlong",
"sety",
// Type of the command data
floatType,
// Function pointer
&cb_setlong
&cb_sety
},
// yaw setpoint subtype
{
......@@ -817,71 +823,71 @@ struct MessageType MessageTypes[MAX_TYPE] =
// Function pointer
&cb_getheightd
},
// lat p constant subtype
// x p constant subtype
{
// ID
0x15,
// Command text
"getlatp",
"getxp",
// Type of the command data
floatType,
// Function pointer
&cb_getlatp
&cb_getxp
},
// lat i constant subtype
// x i constant subtype
{
// ID
0x16,
// Command text
"getlati",
"getxi",
// Type of the command data
floatType,
// Function pointer
&cb_getlati
&cb_getxi
},
// lat d constant subtype
// x d constant subtype
{
// ID
0x17,
// Command text
"getlatd",
"getxd",
// Type of the command data
floatType,
// Function pointer
&cb_getlatd
&cb_getxd
},
// long p constant subtype
// y p constant subtype
{
// ID
0x18,
// Command text
"getlongp",
"getyp",
// Type of the command data
floatType,
// Function pointer
&cb_getlongp
&cb_getyp
},
// long i constant subtype
// y i constant subtype
{
// ID
0x19,
// Command text
"getlongi",
"getyi",
// Type of the command data
floatType,
// Function pointer
&cb_getlongi
&cb_getyi
},
// long d constant subtype
// y d constant subtype
{
// ID
0x1A,
// Command text
"getlongd",
"getyd",
// Type of the command data
floatType,
// Function pointer
&cb_getlongd
&cb_getyd
},
// height setpoint subtype
{
......@@ -894,27 +900,27 @@ struct MessageType MessageTypes[MAX_TYPE] =
// Function pointer
&cb_getheight
},
// lat getpoint subtype
// x getpoint subtype
{
// ID
0x1C,
// Command text
"getlat",
"getx",
// Type of the command data
floatType,
// Function pointer
&cb_getlat
&cb_getx
},
// long getpoint subtype
// y getpoint subtype
{
// ID
0x1D,
// Command text
"getlong",
"gety",
// Type of the command data
floatType,
// Function pointer
&cb_getlong
&cb_gety
},
// yaw getpoint subtype
{
......@@ -1191,71 +1197,71 @@ struct MessageType MessageTypes[MAX_TYPE] =
// Function pointer
&cb_respheightd
},
// lat p constant subtype
// x p constant subtype
{
// ID
0x15,
// Command text
"resplatp",
"respxp",
// Type of the command data
floatType,
// Function pointer
&cb_resplatp
&cb_respxp
},
// lat i constant subtype
// x i constant subtype
{
// ID
0x16,
// Command text
"resplati",
"respxi",
// Type of the command data
floatType,
// Function pointer
&cb_resplati
&cb_respxi
},
// lat d constant subtype
// x d constant subtype
{
// ID
0x17,
// Command text
"resplatd",
"respxd",
// Type of the command data
floatType,
// Function pointer
&cb_resplatd
&cb_respxd
},
// long p constant subtype
// y p constant subtype
{
// ID
0x18,
// Command text
"resplongp",
"respyp",
// Type of the command data
floatType,
// Function pointer
&cb_resplongp
&cb_respyp
},
// long i constant subtype
// y i constant subtype
{
// ID
0x19,
// Command text
"resplongi",
"respyi",
// Type of the command data
floatType,
// Function pointer
&cb_resplongi
&cb_respyi
},
// long d constant subtype
// y d constant subtype
{
// ID
0x1A,
// Command text
"resplongd",
"respyd",
// Type of the command data
floatType,
// Function pointer
&cb_resplongd
&cb_respyd
},
// height setpoint subtype
{
......@@ -1268,27 +1274,27 @@ struct MessageType MessageTypes[MAX_TYPE] =
// Function pointer
&cb_respheight
},
// lat resppoint subtype
// x resppoint subtype
{
// ID
0x1C,
// Command text
"resplat",
"respx",
// Type of the command data
floatType,
// Function pointer
&cb_resplat
&cb_respx
},
// long resppoint subtype
// y resppoint subtype
{
// ID
0x1D,
// Command text
"resplong",
"respy",
// Type of the command data
floatType,
// Function pointer
&cb_resplong
&cb_respy
},
// yaw resppoint subtype
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment