User Tools

Site Tools


doc:crazyflie:crtp:generic_setpoint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
doc:crazyflie:crtp:generic_setpoint [2017-02-18 12:33]
arnaud created
doc:crazyflie:crtp:generic_setpoint [2018-02-15 09:23]
arnaud
Line 4: Line 4:
  
 ^  Port  ^  Channel  ^ Name ^ ^  Port  ^  Channel  ^ Name ^
-|  7         | Generic setpoint |+|  7         | [[doc:crazyflie:crtp:generic_setpoint#generic_setpoint|Generic setpoint]] |
  
 ===== Generic setpoint ===== ===== Generic setpoint =====
  
 Generic setpoint packet format: Generic setpoint packet format:
-^  Byte  ^ Value  ^ Note ^+^  Byte  ^  Value  ^ Note ^
 |      |  ID    | ID of the setpoint packet | |      |  ID    | ID of the setpoint packet |
-|   1..  |  Payload | Format defined per ID |+|   1..  |  Payload  | Format defined per ID |
  
 Defined IDs: Defined IDs:
 ^  ID  ^ Type  ^ ^  ID  ^ Type  ^
-|  0   | stop  | +|  0   [[doc:crazyflie:crtp:generic_setpoint#stop|stop]]  | 
-|  1   | Velocity World |+|  1   | [[doc:crazyflie:crtp:generic_setpoint#velocity_world|Velocity World]] | 
 +|  2   | [[doc:crazyflie:crtp:generic_setpoint#z_distance|Z Distance]] | 
  
 ==== Stop ==== ==== Stop ====
Line 26: Line 28:
 Velocity setpoint in the world coordinate together with a YAW rotation speed. Useful for a teleop mode in a local positioning system. Velocity setpoint in the world coordinate together with a YAW rotation speed. Useful for a teleop mode in a local positioning system.
  
-Format:+Payload format:
 <code c> <code c>
 struct velocityPacket_s { struct velocityPacket_s {
Line 32: Line 34:
   float vy;        // ...   float vy;        // ...
   float vz;        // ...   float vz;        // ...
-  float yawrate;  // rad/s+  float yawrate;  // deg/s
 } __attribute__((packed)); } __attribute__((packed));
 </code> </code>
  
 +==== Z Distance ====
 +
 +Set the Crazyflie absolute height and roll/pitch angles. Used for Z-ranger.
 +
 +Payload format:
 +<code c>
 +struct zDistancePacket_s {
 +  float roll;            // deg
 +  float pitch;           // ...
 +  float yawrate;         // deg/s
 +  float zDistance;        // m in the world frame of reference
 +} __attribute__((packed));
 +</code>
  
  
doc/crazyflie/crtp/generic_setpoint.txt · Last modified: 2020-05-12 14:19 by kimberly