| CPC F41A 9/62 (2013.01) | 11 Claims |

|
1. A magazine system configured to determine a count of ammunition within the magazine system, the magazine system comprising:
a magazine comprising a housing, a follower, a set of sensors, a first magnet, and a second magnet, wherein the magazine is configured to house ammunition;
a memory comprising specific computer-executable instructions; and
a hardware processor in communication with the memory and configured to execute the specific computer-executable instructions to at least:
obtain sensor values from a set of sensors of the magazine;
identify a first sensor from the set of sensors associated with a largest value from the sensor values;
determine a first magnet location based at least in part on a location of the first sensor;
determine a first aggregate value based on a first subset of sensors located on a first side of the first sensor;
determine a second aggregate value based on a second subset of sensors located on a second side of the first sensor;
determine a second magnet location based at least in part on the first aggregate value and the second aggregate value;
generate a centroid data structure based at least in part on a subset of sensors from the set of sensors;
determine a position of a follower of the magazine based at least in part on the centroid data structure, the first magnet location, and the second magnet location; and
determine the count of the ammunition within the magazine based at least in part on the position of the follower.
|