buzz_syntax_cheatsheet

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
buzz_syntax_cheatsheet [2016/04/12 22:15] ilpincybuzz_syntax_cheatsheet [2018/03/23 18:17] (current) jayam
Line 138: Line 138:
 # Getting the angle of a 2D vector # Getting the angle of a 2D vector
 function vec2_angle(v) { function vec2_angle(v) {
-   return math.atan2(v.y, v.x)+   return math.atan(v.y, v.x)
 }</code> | }</code> |
 ^ Swarm management |<code buzz># creation of a swarm with identifier 1 ^ Swarm management |<code buzz># creation of a swarm with identifier 1
Line 181: Line 181:
   function(rid, data) {   function(rid, data) {
     log("robot ", rid, ": ",     log("robot ", rid, ": ",
-        "distance  = ", data.distance, ", " +        "distance  = ", data.distance, ", ", 
-        "azimuth   = ", data.azimuth, ", "+        "azimuth   = ", data.azimuth, ", ",
         "elevation = ", data.elevation) })         "elevation = ", data.elevation) })
  
  • buzz_syntax_cheatsheet.txt
  • Last modified: 2018/03/23 18:17
  • by jayam