Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
manglemix committed Sep 23, 2023
2 parents c66d095 + 87fc210 commit a14d1ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 118 deletions.
115 changes: 0 additions & 115 deletions lunabase/ffmpeg.gd

This file was deleted.

7 changes: 5 additions & 2 deletions lunabase/lunabot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func _ready() -> void:
if err != OK:
push_error("Failed to start ENet Server: " + str(err))
return
# server.compress(ENetConnection.COMPRESS_ZLIB)
thread.start(_run_thr)


Expand Down Expand Up @@ -137,7 +136,11 @@ func _on_receive(channel: int) -> void:
pass

Channels.CAMERA:
Ffmpeg.process_data(data)
var img := Image.new()
var err := img.load_webp_from_buffer(data)
if err != OK:
push_error("Error parsing camera frame: %s" % err)
call_deferred("emit_signal", "camera_frame_received", img)

Channels.ODOMETRY:
var x := data.decode_float(0)
Expand Down
1 change: 0 additions & 1 deletion lunabase/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ config/icon="res://icon.png"
[autoload]

Lunabot="*res://lunabot.gd"
Ffmpeg="*res://ffmpeg.gd"

[display]

Expand Down

0 comments on commit a14d1ca

Please sign in to comment.