You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wybren Kortstra edited this page Mar 31, 2017
·
2 revisions
The message API defines the protocol used to exchange information between the drones and the physics engine. The physics engine sends messages about the position, direction, speed and acceleration to the drones. The drones then know exactly where they are. The drones send control messages to the physics engine, indicating they want to accelerate (or decelerate) or rotate in/to some direction. Other drone components could send control messages, like firing a bullet from a gun.
For milestones 0 and 1 we only need the following messages.
DroneMessage
Position: D3Vector
Direction: D3PoleCoordinate (Absolute direction)
Velocity: D3Vector
Acceleration: D3Vector
ControlMessage
Direction: D3PoleCoordinate (Relative direction change)