-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
AP_DDS: Added direct actuator control #29179
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Control the direct motor outputs of the vehicle | ||
builtin_interfaces/Time timestamp # ms | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add documentation what this message is for. Something like "Control the direct motor outputs of the vehicle" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||
float32[32] actuator # [-1, 1] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// generated from rosidl_adapter/resource/msg.idl.em | ||
// with input from ardupilot_msgs/msg/MotorControl.msg | ||
// generated code does not contain a copyright notice | ||
|
||
#include "builtin_interfaces/msg/Time.idl" | ||
|
||
module ardupilot_msgs { | ||
module msg { | ||
typedef float float__32[32]; | ||
@verbatim (language="comment", text= | ||
"Control the direct motor outputs of the vehicle") | ||
struct MotorControl { | ||
@verbatim (language="comment", text= | ||
"ms") | ||
builtin_interfaces::msg::Time timestamp; | ||
|
||
@verbatim (language="comment", text= | ||
"[-1, 1]") | ||
float__32 actuator; | ||
}; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you changed to double in the actuators, then this would not require a change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Ryanf55 ! So ARRAY_SIZE gives number of elements and because of that it will not copy anything after 8th element(32bytes). Either way you suggest using double(float64) instead of float32?