v9.1.2-rc5

pull/1159/head
Rick Carlino 2020-02-20 15:46:29 -06:00
parent 205fa6afd6
commit 9d932c8025
4 changed files with 9 additions and 8 deletions

View File

@ -3,7 +3,7 @@
# 9.1.2
* Genesis v1.5 and Express v1.0 firmware updates.
* Bug fix for movvement error reporting
* Bug fix for movement error reporting
* Improved firmware error message reporting
* Improved support for gantry mounted tools.

View File

@ -1 +1 @@
9.1.2-rc4
9.1.2-rc5

View File

@ -0,0 +1,7 @@
defmodule FarmbotCore.Asset.Repo.Migrations.InvalidateLocalPointsGantryMounted do
use Ecto.Migration
def change do
execute("UPDATE points SET updated_at = \"1970-11-07 16:52:31.618000\"")
end
end

View File

@ -33,10 +33,6 @@ defmodule FarmbotOS.SysCalls.PointLookup do
tool = Asset.get_tool(id: id)
p = Asset.get_point(tool_id: id)
IO.puts("======== BEGIN get_toolslot_for_tool(id)")
IO.inspect(tool)
IO.inspect(p)
with %{id: ^id} <- tool,
%{name: name, x: x, y: y, z: z, gantry_mounted: mounted} <- p do
maybe_adjust_coordinates(%{
@ -52,12 +48,10 @@ defmodule FarmbotOS.SysCalls.PointLookup do
end
defp maybe_adjust_coordinates(%{gantry_mounted: true} = point) do
IO.puts("==== IT IS DOING THE CORRECT THING")
%{point | x: Movement.get_current_x()}
end
defp maybe_adjust_coordinates(point) do
IO.puts("==== Using regular coordinates!")
point
end
end